public void MakeModelByCorporation(CommFun.CorporationInfo corporationInfo, ref SysTaxInfoModel TaxInfoModel) { try { TaxInfoModel.QYBH = corporationInfo.m_strSignCode; TaxInfoModel.QYMC = corporationInfo.m_strCorpName; TaxInfoModel.ZCLX = corporationInfo.m_strRegType; TaxInfoModel.KPXE = Convert.ToInt32(corporationInfo.m_lUpperLimit); TaxInfoModel.BSRQ = corporationInfo.m_dtReportTime; TaxInfoModel.BSRPHF = corporationInfo.m_nSoftPanDiv; TaxInfoModel.YHZH = corporationInfo.m_strBankAccount; TaxInfoModel.FRDB = corporationInfo.m_strAgenter; TaxInfoModel.YYDZ = corporationInfo.m_strAddress; TaxInfoModel.DHHM = corporationInfo.m_strTelephone; TaxInfoModel.JYZS = corporationInfo.m_bEasyLevy; TaxInfoModel.KJZG = corporationInfo.m_strAccounter; } catch (Exception exception) { this.loger.Error("init Model failed:" + exception.Message); ExceptionHandler.HandleError(exception); } }
public CommFun.CorporationInfo GetCorporationInfo() { CommFun.CorporationInfo info = new CommFun.CorporationInfo(); try { info.m_strCorpCode = this.taxCard.get_CorpCode(); info.m_strCorpName = this.taxCard.get_Corporation(); info.m_strSignCode = this.taxCard.get_TaxCode(); info.m_nMachineCode = this.taxCard.get_Machine(); if (this.taxCard.get_TaxMode() == 2) { TaxStateInfo info2 = this.taxCard.get_StateInfo(); info.m_lUpperLimit = info2.InvLimit; info.m_nBranchCount = info2.MachineNumber; } else { info.m_lUpperLimit = 0L; info.m_nBranchCount = 0; } info.m_strAddress = this.taxCard.get_Address(); info.m_strTelephone = this.taxCard.get_Telephone(); info.m_strBankAccount = this.taxCard.get_BankAccount(); info.m_strAgenter = this.taxCard.get_CorpAgent(); info.m_bEasyLevy = this.taxCard.get_EasyLevy(); info.m_strRegType = this.taxCard.get_RegType(); info.m_strAccounter = ""; info.m_dtReportTime = this.taxCard.get_RepDate(); info.m_nSoftPanDiv = 0; } catch (Exception exception) { this.loger.Debug(exception.Message); throw exception; } return(info); }
public bool AddSysTaxInfo(CommFun.CorporationInfo corporationInfo, ref SysTaxInfoModel sysTaxInfoModel) { this.paraSetDAL.MakeModelByCorporation(corporationInfo, ref sysTaxInfoModel); return(this.paraSetDAL.AddSysTaxInfo(sysTaxInfoModel)); }