コード例 #1
0
ファイル: UCPJ_20.cs プロジェクト: s7loves/mypowerscgl
 private void btReEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.FocusedRowHandle < 0)
     {
         return;
     }
     PJ_20 pj = gridView1.GetFocusedRow() as PJ_20;
     frm20Template frm = new frm20Template();
     frm.RowData = pj;
     frm.Status = "edit";
     frm.ShowDialog();
     InitData();
 }
コード例 #2
0
ファイル: UCPJ_20.cs プロジェクト: s7loves/mypowerscgl
 private void btReAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     PJ_20 newobj = new  PJ_20();
     if (parentID == null || btTQList.EditValue == null) return;
     newobj.ParentID = parentID;
     newobj.OrgCode = parentObj.OrgCode;
     newobj.OrgName = parentObj.OrgName;
     if (btTQList.EditValue != null)
     {
         newobj.tqCode = btTQList.EditValue.ToString();
         newobj.tqName = repositoryItemLookUpEdit3.GetDisplayText(btTQList.EditValue.ToString());
     }
     newobj.CreateDate = DateTime.Now;
     Ebada.Core.UserBase m_UserBase = MainHelper.ValidateLogin();
     newobj.CreateMan = m_UserBase.RealName;
     frm20Template frm = new frm20Template();
     frm.RowData = newobj;
     frm.Status = "add";
     frm.ShowDialog();
     InitData();
 }