public static InDirectLabourLevelPriceUpdate GetInstance() { if (dlpuform == null || dlpuform.IsDisposed) { dlpuform = new InDirectLabourLevelPriceUpdate(); } dlpuform.ShowDetail(); return(dlpuform); }
private void barButtonItem保存_ItemClick(object sender, ItemClickEventArgs e) { if (savetype == "insert") { InDirectLabourLevelPriceInsert.Save(); InDirectLabourLevelPriceInsert.MyClose(); } else if (savetype == "update") { InDirectLabourLevelPriceUpdate.Save(); InDirectLabourLevelPriceUpdate.MyClose(); } }
private void barButtonItem修改_ItemClick(object sender, ItemClickEventArgs e) { string yyyymm = ""; int id = 0, level_begin = 0, level_end = 0; InDirectLabourLevelPriceQuery.GetInfo(ref id, ref yyyymm, ref level_begin, ref level_end); if (yyyymm != "") { InDirectLabourLevelPriceUpdate Frm = InDirectLabourLevelPriceUpdate.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); } }