protected override void RunCommand() { try { string driverVersion = Tool.Instance().GetDriverVersion(); string softVersion = Tool.Instance().GetSoftVersion(); string str3 = driverVersion.Substring(7, 2) + driverVersion.Substring(10, 6); if (softVersion.Equals("FWKP_V2.0_Svr_Client")) { if (str3.CompareTo("A0150729") < 0) { MessageManager.ShowMsgBox("INP-441291"); return; } } else if (str3.CompareTo("L0110501") < 0) { MessageManager.ShowMsgBox("INP-441291"); return; } if (ShareMethods.ApplyAdminCheck("申领撤销")) { if (ApplyCommon.GetAdminType().Equals("CTAIS2.0")) { MessageManager.ShowMsgBox("INP-4412AK", new string[] { "撤销" }); } else { bool dataExist = false; ApplySuccessRevoke revoke = new ApplySuccessRevoke(out dataExist); if (dataExist) { revoke.ShowDialog(); } } } } catch (BaseException exception) { this.loger.Error(exception.Message); ExceptionHandler.HandleError(exception); } catch (Exception exception2) { this.loger.Error(exception2.Message); ExceptionHandler.HandleError(exception2); } }
public static bool ApplyAdminCheck(string operType) { if (File.Exists(cofPath + @"\AdminType.xml")) { adminType = ApplyCommon.GetAdminType(); } else { MessageManager.ShowMsgBox("INP-4412AE"); if (ApplyCommon.DownloadAdminType()) { adminType = ApplyCommon.GetAdminType(); } else { MessageManager.ShowMsgBox("INP-441210", new string[] { operType }); return(false); } } return(true); }
protected override void RunCommand() { try { string driverVersion = Tool.Instance().GetDriverVersion(); string softVersion = Tool.Instance().GetSoftVersion(); string str3 = driverVersion.Substring(7, 2) + driverVersion.Substring(10, 6); if (softVersion.Equals("FWKP_V2.0_Svr_Client")) { if (str3.CompareTo("A0150729") < 0) { MessageManager.ShowMsgBox("INP-441291"); return; } } else if (str3.CompareTo("L0110501") < 0) { MessageManager.ShowMsgBox("INP-441291"); return; } if (ShareMethods.ApplyAdminCheck("申领状态查询")) { new CheckApply(ApplyCommon.GetAdminType().Equals("JS")).ShowDialog(); } } catch (BaseException exception) { this.loger.Error(exception.Message); ExceptionHandler.HandleError(exception); } catch (Exception exception2) { this.loger.Error(exception2.Message); ExceptionHandler.HandleError(exception2); } }
protected override void RunCommand() { try { string driverVersion = Aisino.Fwkp.Fplygl.Common.Tool.Instance().GetDriverVersion(); string softVersion = Aisino.Fwkp.Fplygl.Common.Tool.Instance().GetSoftVersion(); string str3 = driverVersion.Substring(7, 2) + driverVersion.Substring(10, 6); if (softVersion.Equals("FWKP_V2.0_Svr_Client")) { if (str3.CompareTo("A0150729") < 0) { MessageManager.ShowMsgBox("INP-441291"); return; } } else if (str3.CompareTo("L0110501") < 0) { MessageManager.ShowMsgBox("INP-441291"); return; } if (ShareMethods.ApplyAdminCheck("申领")) { string adminType = ApplyCommon.GetAdminType(); if (adminType.Equals("JS")) { string str5 = PropertyUtil.GetValue("Aisino.Fwkp.Fplygl.WLSL_5.ExcutiveUpdateTime"); bool flag = false; string strB = this.TaxCardInstance.GetCardClock().ToString("yyyyMMdd"); if (str5.CompareTo(strB) < 0) { flag = true; } else if (this.psxxDal.CountSynAddrItems() <= 0) { flag = true; } else { flag = false; } if (flag) { ApplyCommon.SynAddressExcutive(); } } string str7 = PropertyUtil.GetValue("Aisino.Fwkp.Fplygl.WLSL_5.ApplyLegalNotice.Repeat"); if (string.IsNullOrEmpty(str7) || str7.Equals("1")) { ApplyLegalNotice notice = new ApplyLegalNotice(false); if (DialogResult.Yes != notice.ShowDialog()) { return; } } new ApplyVolume(adminType.Equals("JS")).ShowDialog(); } } catch (BaseException exception) { this.loger.Error(exception.Message); ExceptionHandler.HandleError(exception); } catch (Exception exception2) { this.loger.Error(exception2.Message); ExceptionHandler.HandleError(exception2); } }