Esempio n. 1
0
 private void btReEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.FocusedRowHandle < 0)
     {
         return;
     }
     PJ_20 pj = gridView1.GetFocusedRow() as PJ_20;
     frmTemplate frm = new frmTemplate();
     frm.RowData = pj;
     frm.Status = "edit";
     frm.ShowDialog();
     InitData();
 }
Esempio n. 2
0
 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;
     frmTemplate frm = new frmTemplate();
     frm.RowData = newobj;
     frm.Status = "add";
     frm.ShowDialog();
     InitData();
 }