Exemple #1
0
 public static IndirectLabourPriceUpdate GetInstance()
 {
     if (ilpuform == null || ilpuform.IsDisposed)
     {
         ilpuform = new IndirectLabourPriceUpdate();
     }
     ilpuform.ShowDetail();
     return(ilpuform);
 }
 private void barButtonItem修改_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (IndirectLabourPriceQuery.GetRowCount() > 0)
     {
         IndirectLabourPriceUpdate Frm = IndirectLabourPriceUpdate.GetInstance();
         Frm.TopLevel = false;
         Frm.Parent   = this;
         Frm.Show();
         Frm.BringToFront();
     }
 }
 private void barButtonItem保存_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (savetype == "insert")
     {
         IndirectLabourPriceInsert.Save();
         IndirectLabourPriceInsert.MyClose();
     }
     else if (savetype == "update")
     {
         IndirectLabourPriceUpdate.Save();
         IndirectLabourPriceUpdate.MyClose();
     }
 }