void client_CompanyCancelCompleted(object sender, CompanyCancelCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (!string.IsNullOrEmpty(e.strMsg)) { SelectCompany.EDITSTATE = Convert.ToInt32(EditStates.Actived).ToString(); SelectCompany.CHECKSTATE = Convert.ToInt32(CheckStates.Approved).ToString(); //ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.strMsg), // Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(e.strMsg), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } CompanyForm form = new CompanyForm(FormTypes.Resubmit, SelectCompany.COMPANYID); EntityBrowser browser = new EntityBrowser(form); browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.FormType = FormTypes.Resubmit; browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } }
void client_CompanyCancelCompleted(object sender, CompanyCancelCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (!string.IsNullOrEmpty(e.strMsg)) { SelectCompany.EDITSTATE = Convert.ToInt32(EditStates.Actived).ToString(); SelectCompany.CHECKSTATE = Convert.ToInt32(CheckStates.Approved).ToString(); //ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.strMsg), // Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(e.strMsg), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } CompanyForm form = new CompanyForm(FormTypes.Resubmit, SelectCompany.COMPANYID); EntityBrowser browser = new EntityBrowser(form); browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.FormType = FormTypes.Resubmit; browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } }