using system;
using system.collections.generic;
using system.linq;
using system.text;
using system.windows;
using system.windows.controls;
using system.windows.data;
using system.windows.documents;
using system.windows.input;
using system.windows.media;
using system.windows.media.imaging;
using system.windows.shapes;
using system.data;
using system.componentmodel;
using health365iiprojectbll;
namespace health365iiprojectview
private void btncommit_click(object sender, routedeventargs e)
else if (datagrid.columns.count == 0)
}void datagrid_layoutupdated(object sender, eventargs e)
}private void moneygrid_selectionchanged(object sender, selectionchangedeventargs e)
private void window_loaded(object sender, routedeventargs e)
private void datarow(int sortindex,int sorttype)
datagrid.layoutupdated += new eventhandler(datagrid_layoutupdated);
datagrid.mousedoubleclick += new mousebuttoneventhandler(datagrid_mousedoubleclick);
datagrid.itemssource = dt.defaultview;
}/// /// 雙擊處理datagird
///
void datagrid_mousedoubleclick(object sender, mousebuttoneventargs e)
datarowitem();
_mainlogic.getuserinforeportbymserviceid();
if (pw != null) pw.close();
pw = new popupwindows();
pw.closed += new eventhandler(pw_closed);
pw.showdialog();
this.datagrid.selecteditem = null;
}void pw_closed(object sender, eventargs e)
", _mainlogic.userinfomation.firstfilename);
wm.textblockuser.text = string.format("使用者姓名: 性別: 年齡:", _mainlogic.userinfomation.fullname, _mainlogic.userinfomation.***, _mainlogic.userinfomation.age);
wm.windowstate = windowstate.maximized;
wm.showdialog();
}/// /// 提取出來非必須輸入的內容
///
private void userstatelist(int sortindex, int sorttype)
else
string cheack1 = (checkbox1.ischecked == true ? "1" : "0");
string cheack2 = (checkbox2.ischecked == true ? "1" : "0");
//string cheack3 = (checkbox3.ischecked == true ? "1" : "0");
//string cheack4 = (checkbox4.ischecked == true ? "1" : "0");
string cheack5 = (checkbox5.ischecked == true ? "1" : "0");
string reportstatue = cheack1 + cheack2 + "0" + "0" + cheack5 + "00000";
string msgin;
_fir = _mainlogic.web_queryreportlistin(out msgin,username,
membercode, firstfilename, usercode2,
usercode1, start,
end,sortindex,sorttype, reportstatue);
_msgin = msgin;
}/// /// 返回單行資料
///
///
public void datarowitem()
/// /// 新增的標題頭
///
///
private void grid_adddataline(datatable dt)
private void textboxallocationnum_textchanged(object sender, textchangedeventargs e)
else if (tb.text != tb.text.trimstart())
}private void datagrdi_sorting(object sender, datagridsortingeventargs e)
else
//object obj = dr.itemarray;
e.handled = true;}}
}
開啟乙個視窗,當前視窗最小化不可操作
//外部宣告
private popupwindows pw;
//要觸發跳轉的地方
if (pw != null) pw.close();
pw = new popupwindows();
pw.closed += new eventhandler(pw_closed);
pw.showdialog();
//關閉事件
void pw_closed(object sender, eventargs e)
", _mainlogic.userinfomation.firstfilename);
wm.textblockuser.text = string.format("使用者姓名: 性別: 年齡:", _mainlogic.userinfomation.fullname, _mainlogic.userinfomation.***, _mainlogic.userinfomation.age);
wm.windowstate = windowstate.maximized;
wm.showdialog();
}
工作筆記 C 複習二
一 find函式 find函式宣告 template inputiterator find inputiterator first,inputiterator last,const t val find函式作用 在 first,last 範圍內查詢第乙個與val相等的元素,並返回這個元素的迭代器 i...
SAP工作筆記
sap 筆記整理 sap筆記整理 1一 abap 開發部分 21 常用tcode se80 se38 se11 se10 se93 22 se11 是abap 字典,可以查詢資料庫欄位和儲存資訊。33 se10 用來查詢開發過的程式相關資訊。34 se93 用來發布程式,給程式乙個tcode.3 5...
工作筆記(二)
對 android系統源 情景分析 書中例子 在裝置驅動程式中 開啟裝置函式比如 freg open struct inode inode,sruct file filp 它的作用實質上就是將file這個檔案結構體中的空指標成員變數private data賦上你所要訪問的裝置的結構體的位址而已。以便...