void btnReSubmit_Click(object sender, RoutedEventArgs e) { if (DaGr.SelectedItems == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } if (DaGr.SelectedItems.Count == 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } V_ContractApplications ent = DaGr.SelectedItems[0] as V_ContractApplications; ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.Resubmit, ent.contractApp.CONTRACTAPPID); EntityBrowser browser = new EntityBrowser(AddWin); browser.FormType = FormTypes.Resubmit; browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); }
void btnEdit_Click(object sender, RoutedEventArgs e) { string strLeaveTypeSetID = string.Empty; if (DaGr.SelectedItems == null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT")); return; } if (DaGr.SelectedItems.Count == 0) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT")); return; } V_ContractApplications ent = DaGr.SelectedItems[0] as V_ContractApplications; if (ent.contractApp.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString() || ent.contractApp.CHECKSTATE == ((int)CheckStates.UnApproved).ToString()) { ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.Edit, ent.contractApp.CONTRACTAPPID); EntityBrowser browser = new EntityBrowser(AddWin); browser.FormType = FormTypes.Edit; browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); } else { Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED")); return; } }
void btnNew_Click(object sender, RoutedEventArgs e) { ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.New, ""); EntityBrowser browser = new EntityBrowser(AddWin); browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); }
void btnAudit_Click(object sender, RoutedEventArgs e) { string strLeaveTypeSetID = string.Empty; if (DaGr.SelectedItems == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } if (DaGr.SelectedItems.Count == 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } V_ContractApplications ent = DaGr.SelectedItems[0] as V_ContractApplications; if (ent.contractApp.CHECKSTATE == ((int)CheckStates.Approving).ToString() || ent.contractApp.CHECKSTATE == ((int)CheckStates.WaittingApproval).ToString() || ent.contractApp.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString()) { ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.Audit, ent.contractApp.CONTRACTAPPID); EntityBrowser browser = new EntityBrowser(AddWin); browser.FormType = FormTypes.Audit; browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTRECORDNOTOPERATEPLEASEAGAIN")); return; } }
void btnReSubmit_Click(object sender, RoutedEventArgs e) { if (DaGr.SelectedItems == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } if (DaGr.SelectedItems.Count == 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } V_ContractApplications ent = DaGr.SelectedItems[0] as V_ContractApplications; ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.Resubmit, ent.contractApp.CONTRACTAPPID); EntityBrowser browser = new EntityBrowser(AddWin); browser.FormType = FormTypes.Resubmit; browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); }
void btnNew_Click(object sender, RoutedEventArgs e) { ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.New, ""); EntityBrowser browser = new EntityBrowser(AddWin); browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); }
void btnEdit_Click(object sender, RoutedEventArgs e) { string strLeaveTypeSetID = string.Empty; if (DaGr.SelectedItems == null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT")); return; } if (DaGr.SelectedItems.Count == 0) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT")); return; } V_ContractApplications ent = DaGr.SelectedItems[0] as V_ContractApplications; if (ent.contractApp.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString() || ent.contractApp.CHECKSTATE == ((int)CheckStates.UnApproved).ToString()) { ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.Edit, ent.contractApp.CONTRACTAPPID); EntityBrowser browser = new EntityBrowser(AddWin); browser.FormType = FormTypes.Edit; browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); } else { Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED")); return; } }
void btnAudit_Click(object sender, RoutedEventArgs e) { string strLeaveTypeSetID = string.Empty; if (DaGr.SelectedItems == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } if (DaGr.SelectedItems.Count == 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } V_ContractApplications ent = DaGr.SelectedItems[0] as V_ContractApplications; if (ent.contractApp.CHECKSTATE == ((int)CheckStates.Approving).ToString() || ent.contractApp.CHECKSTATE == ((int)CheckStates.WaittingApproval).ToString() || ent.contractApp.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString()) { ApplicationsForContractsPages AddWin = new ApplicationsForContractsPages(FormTypes.Audit, ent.contractApp.CONTRACTAPPID); EntityBrowser browser = new EntityBrowser(AddWin); browser.FormType = FormTypes.Audit; browser.MinWidth = 610; browser.MinHeight = 480; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTRECORDNOTOPERATEPLEASEAGAIN")); return; } }