Beispiel #1
0
 public static DirectLabourPriceUpdate GetInstance()
 {
     if (dlpuform == null || dlpuform.IsDisposed)
     {
         dlpuform = new DirectLabourPriceUpdate();
     }
     dlpuform.ShowDetail();
     return(dlpuform);
 }
Beispiel #2
0
 private void barButtonItem保存_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (savetype == "insert")
     {
         DirectLabourPriceInsert.Save();
         DirectLabourPriceInsert.MyClose();
     }
     else if (savetype == "update")
     {
         DirectLabourPriceUpdate.Save();
         DirectLabourPriceUpdate.MyClose();
     }
 }
Beispiel #3
0
        private void barButtonItem修改_ItemClick(object sender, ItemClickEventArgs e)
        {
            string month = DirectLabourPriceQuery.GetMonth();

            if (month != "")
            {
                DirectLabourPriceUpdate Frm = DirectLabourPriceUpdate.GetInstance();
                Frm.TopLevel = false;
                Frm.Parent   = this;
                Frm.Show();
                Frm.BringToFront();
            }
        }