示例#1
0
 public static DirectLabourPriceUpdate GetInstance()
 {
     if (dlpuform == null || dlpuform.IsDisposed)
     {
         dlpuform = new DirectLabourPriceUpdate();
     }
     dlpuform.ShowDetail();
     return(dlpuform);
 }
示例#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();
     }
 }
示例#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();
            }
        }