public bool GetTellerWorkload(string tellerCode, string tellerName, DateTime date, TellerBiz teller) { BizFactor factor = new BizFactor(); // TODO: 获取折算因子 BizModel model = new BizModel(); model.TellerName = tellerName; model.TellerCode = tellerCode; model.WorkDate = date; model.TotalBiz.CorporateAccount = teller.CorporateAccount * factor.CorporateAccountFactor; model.TotalBiz.PersonalAccount = teller.PersonalAccount * factor.PersonalAccountFactor; model.TotalBiz.CorporateClose = teller.CorporateClose * factor.CorporateCloseFactor; model.TotalBiz.PersonalClose = teller.PersonalClose * factor.PersonalCloseFactor; model.TotalBiz.CorporateCash = teller.CorporateCash * factor.CorporateCashFactor; model.TotalBiz.PersonalCash = teller.PersonalCash * factor.PersonalCashFactor; model.TotalBiz.OtherDepositCash = teller.OtherDepositCash * factor.OtherDepositFactor; model.TotalBiz.CorporateSettle = teller.CorporateSettle * factor.CorporateSettleFactor; model.TotalBiz.PersonalSettle = teller.PersonalSettle * factor.PersonalSettleFactor; model.TotalBiz.VostroPrint = teller.VostroPrint * factor.VostroPrintFactor; model.TotalBiz.Inquiry = teller.Inquiry * factor.InquiryFactor; model.TotalBiz.OtherSettle = teller.OtherSettle * factor.OtherSettleFactor; model.TotalBiz.CorporateSMS = teller.CorporateSMS * factor.CorporateSMSFactor; model.TotalBiz.PersonalSMS = teller.PersonalSMS * factor.PersonalSMSFactor; model.TotalBiz.CorporateBanking = teller.CorporateBanking * factor.CorporateBankingFactor; model.TotalBiz.PersonalBanking = teller.PersonalBanking * factor.PersonalBankingFactor; model.TotalBiz.MobileBanking = teller.MobileBanking * factor.MobileBankingFactor; model.TotalBiz.LoanCollection = teller.LoanCollection * factor.LoanCollectionFactor; model.TotalBiz.ManualInterset = teller.ManualInterset * factor.ManualInterestFactor; model.TotalBiz.DraftSign = teller.DraftSign * factor.DraftSignFactor; model.TotalBiz.Remittance = teller.Remittance * factor.RemittanceFactor; model.TotalBiz.TicketDiscount = teller.TicketDiscount * factor.DiscountTicketFactor; model.TotalBiz.ElectroTicketDiscount = teller.ElectroTicketDiscount * factor.ElectroTicketFactor; model.TotalBiz.EastChinaDraft = teller.EastChinaDraft * factor.EastChinaTicketFactor; model.TotalBiz.SellBlankTicket = teller.SellBlankTicket * factor.SellBlankTicketFactor; model.TotalBiz.LossLiftLoss = teller.LossLiftLoss * factor.LossLiftLossFactor; model.TotalBiz.InquiryFrozen = teller.InquiryFrozen * factor.InquiryFrozenFactor; model.TotalBiz.CtrlRelease = teller.CtrlRelease * factor.CtrlReleaseFactor; model.TotalBiz.RedBlue = teller.RedBlue * factor.RedBlueFactor; model.TotalBiz.BatchModuleMaintain = teller.BatchModuleMaintain * factor.BatchModuleFactor; model.TotalBiz.BatchUpload = teller.BatchUpload * factor.BatchUploadFactor; model.TotalBiz.BatchDownload = teller.BatchDownload * factor.BatchDownloadFactor; model.TotalBiz.BatchAccount = teller.BatchAccount * factor.BatchAccountFactor; model.TotalBiz.CardApply = teller.CardApply * factor.CardApplyFactor; model.TotalBiz.CardLoss = teller.CardLoss * factor.CardLoassFactor; model.TotalBiz.CardActivate = teller.CardActivate * factor.CardActivateFactor; model.TotalBiz.OtherService = teller.OtherService * factor.OtherServiceFactor; model.TotalBiz.CashTransferAmount = teller.CashTransferAmount * factor.CashTransferAmountFactor; model.TotalBiz.OtherCashAmount = teller.OtherCashAmount * factor.OtherCashAmountFactor; // TODO: 存入数据库 return(true); }
protected void btnSave_Click(object sender, EventArgs e) { string tellerName = tbxTellerName.Text.Trim(); string tellerCode = tbxTellerCode.Text.Trim(); DateTime date = DateTime.Parse(dateInput.Text); TellerBiz tellerBiz = new TellerBiz(); // 开(销)户业务 tellerBiz.CorporateAccount = GetTextValue(tbxCorporateAccount.Text.Trim()); tellerBiz.PersonalAccount = GetTextValue(tbxPersonalAccount.Text.Trim()); tellerBiz.CorporateClose = GetTextValue(tbxCorporateClosing.Text.Trim()); tellerBiz.PersonalClose = GetTextValue(tbxPersonalClosing.Text.Trim()); // 现金业务 tellerBiz.CorporateCash = GetTextValue(tbxCorporateCash.Text.Trim()); tellerBiz.PersonalCash = GetTextValue(tbxPersonalCash.Text.Trim()); tellerBiz.OtherDepositCash = GetTextValue(tbxOtherCash.Text.Trim()); // 结算类业务 tellerBiz.CorporateSettle = GetTextValue(tbxCorporateSettle.Text.Trim()); tellerBiz.PersonalSettle = GetTextValue(tbxPersonalSettle.Text.Trim()); tellerBiz.VostroPrint = GetTextValue(tbxVostroPrint.Text.Trim()); tellerBiz.Inquiry = GetTextValue(tbxInquiry.Text.Trim()); tellerBiz.OtherSettle = GetTextValue(tbxOtherSettle.Text.Trim()); // 渠道类业务 tellerBiz.CorporateSMS = GetTextValue(tbxCorporateSMS.Text.Trim()); tellerBiz.PersonalSMS = GetTextValue(tbxPersonalSMS.Text.Trim()); tellerBiz.CorporateBanking = GetTextValue(tbxCorporateBanking.Text.Trim()); tellerBiz.PersonalBanking = GetTextValue(tbxPersonalBanking.Text.Trim()); tellerBiz.MobileBanking = GetTextValue(tbxMobileBanking.Text.Trim()); // 贷款、票据业务 tellerBiz.LoanCollection = GetTextValue(tbxLoanCollection.Text.Trim()); tellerBiz.ManualInterset = GetTextValue(tbxManualInterest.Text.Trim()); tellerBiz.DraftSign = GetTextValue(tbxDraftExchange.Text.Trim()); tellerBiz.Remittance = GetTextValue(tbxRemittance.Text.Trim()); tellerBiz.TicketDiscount = GetTextValue(tbxDiscountTicket.Text.Trim()); tellerBiz.ElectroTicketDiscount = GetTextValue(tbxElectroTicket.Text.Trim()); tellerBiz.EastChinaDraft = GetTextValue(tbxEastChina.Text.Trim()); // 公共类 tellerBiz.SellBlankTicket = GetTextValue(tbxBlankVoucher.Text.Trim()); tellerBiz.LossLiftLoss = GetTextValue(tbxLossLiftLoss.Text.Trim()); tellerBiz.InquiryFrozen = GetTextValue(tbxFrozenBuckle.Text.Trim()); tellerBiz.CtrlRelease = GetTextValue(tbxFrozenBuckle.Text.Trim()); tellerBiz.RedBlue = GetTextValue(tbxRedBlue.Text.Trim()); tellerBiz.BatchModuleMaintain = GetTextValue(tbxBatchModule.Text.Trim()); tellerBiz.BatchUpload = GetTextValue(tbxBatchUpload.Text.Trim()); tellerBiz.BatchDownload = GetTextValue(tbxBatchDownload.Text.Trim()); tellerBiz.BatchAccount = GetTextValue(tbxBatchAccount.Text.Trim()); // 社保卡及其他 tellerBiz.CardApply = GetTextValue(tbxCardApply.Text.Trim()); tellerBiz.CardLoss = GetTextValue(tbxCardLoss.Text.Trim()); tellerBiz.CardActivate = GetTextValue(tbxCardActivate.Text.Trim()); tellerBiz.OtherService = GetTextValue(tbxOtherService.Text.Trim()); tellerBiz.CashTransferAmount = GetTextValue(tbxCashTransfer.Text.Trim()); tellerBiz.OtherCashAmount = GetTextValue(tbxOtherCash.Text.Trim()); }