public void GetPattyCash() { PTdbmService pTdbmService = new PTdbmService(); PTYhmcService pTYhmcService = new PTYhmcService(); BasicSerialNumberService basicSerialNumberService = new BasicSerialNumberService(); PTdbm byId = pTdbmService.GetById(1); this.lblTitle.Text = byId.V_BMMC + "备用金申请表"; this.lblPayMentDate.Text = System.DateTime.Now.ToShortDateString(); if (!string.IsNullOrEmpty(this.pcId)) { PCPettyCash byId2 = this.pcSer.GetById(this.pcId); if (byId2 != null) { PTyhmc byId3 = pTYhmcService.GetById(byId2.Applicant); PTdbm byId4 = pTdbmService.GetById(byId3.i_bmdm); this.lblDepartMent.Text = byId4.V_BMMC; this.lblOperator.Text = byId3.v_xm; this.lblContent.Text = byId2.Matter; this.lblMoney.Text = byId2.Cash.ToString(); this.lblTotalMoney.Text = this.lblMoney.Text; this.lblDrawPeople.Text = byId3.v_xm; this.lblpayee.Text = byId2.Payee; this.lblBank.Text = byId2.Bank; this.lblAccount.Text = byId2.Account; if (byId2.Project != null) { this.lblProjectCode.Text = byId2.Project.PrjCode; } this.lblFileNumber.Text = basicSerialNumberService.GetNo("PC_PettyCash", this.pcId); } } }
private void Initial() { PTdbmService pTdbmService = new PTdbmService(); PTYhmcService pTYhmcService = new PTYhmcService(); PTdbm byId = pTdbmService.GetById(1); this.lblTitle.Text = byId.V_BMMC + "备用金申请表"; if (!string.IsNullOrEmpty(this.pcId)) { PCPettyCash byId2 = this.pcSer.GetById(this.pcId); if (byId2 != null) { this.hfldPettyCashIds.Value = this.pcId; PTyhmc byId3 = pTYhmcService.GetById(byId2.Applicant); PTdbm byId4 = pTdbmService.GetById(byId3.i_bmdm); this.lblPayer.Text = byId2.Payer; this.lblApplicationDate.Text = byId2.ApplicationDate.ToString("yyyy-MM-dd"); this.lblDepart.Text = byId4.V_BMMC; this.lblApplicant.Text = byId3.v_xm; this.lblAccount.Text = byId2.Account; this.lblBank.Text = byId2.Bank; this.lblMatter.Text = byId2.Matter; if (byId2.Project != null) { this.lblProject.Text = byId2.Project.PrjName; } this.lblCash.Text = byId2.Cash.ToString(); this.lblpayee.Text = byId2.Payee; this.lblCashDate.Text = byId2.CashDate.ToString("yyyy-MM-dd"); this.lblApplicationReason.Text = StringUtility.ReplaceTxt(byId2.ApplicationReason); } } }
private void BindData() { if (!string.IsNullOrEmpty(this.mailId)) { Mail byId = this.mailService.GetById(this.mailId); this.TDAllName.Visible = true; string[] first = byId.AllMailToCode.Split(new char[] { ',' }); string[] second = byId.AllCopytoCode.Split(new char[] { ',' }); System.Collections.Generic.List <string> list = first.Union(second).ToList <string>(); this.lblName.Text = string.Empty; this.lblB.Text = string.Empty; for (int i = 0; i < list.Count; i++) { PTyhmc pTyhmc = new PTyhmc(); if (!string.IsNullOrEmpty(list[i])) { pTyhmc = this.ptyhcmcservice.GetById(list[i]); Label expr_C9 = this.lblB; expr_C9.Text = expr_C9.Text + "  " + pTyhmc.Bm.V_BMMC + " </br>"; Label expr_F5 = this.lblName; expr_F5.Text = expr_F5.Text + pTyhmc.v_xm + "</br>"; } } } }
public string GetName(object userCode) { string result = string.Empty; PTYhmcService pTYhmcService = new PTYhmcService(); PTyhmc byId = pTYhmcService.GetById(userCode.ToString()); if (byId != null) { result = byId.v_xm; } return(result); }
private void Initial() { PTdbmService pTdbmService = new PTdbmService(); PTYhmcService pTYhmcService = new PTYhmcService(); PTdbm byId = pTdbmService.GetById(1); this.lblTitle.Text = byId.V_BMMC + "备用金申请表"; if (string.Compare(this.type, "Add", true) == 0) { this.txtPayer.Text = byId.V_BMMC; this.txtApplicationDate.Text = System.DateTime.Now.ToString("yyyy-MM-dd"); this.txtCashDate.Text = System.DateTime.Now.AddDays(3.0).ToString("yyyy-MM-dd"); PTyhmc byId2 = pTYhmcService.GetById(base.UserCode); this.txtApplicant.Text = byId2.v_xm; PTdbm byId3 = pTdbmService.GetById(byId2.i_bmdm); this.txtDepart.Text = byId3.V_BMMC; } if (!string.IsNullOrEmpty(this.pcId)) { PCPettyCash byId4 = this.pcSer.GetById(this.pcId); if (byId4 != null) { PTyhmc byId5 = pTYhmcService.GetById(byId4.Applicant); PTdbm byId6 = pTdbmService.GetById(byId5.i_bmdm); this.txtPayer.Text = byId4.Payer; this.txtApplicationDate.Text = byId4.ApplicationDate.ToString("yyyy-MM-dd"); this.txtDepart.Text = byId6.V_BMMC; this.txtApplicant.Text = byId5.v_xm; this.txtAccount.Text = byId4.Account; this.txtBank.Text = byId4.Bank; this.txtMatter.Text = byId4.Matter; if (byId4.Project != null) { this.txtProject.Text = byId4.Project.PrjName; this.hfldPrjTypeCode.Value = byId4.Project.TypeCode; } this.txtCash.Text = byId4.Cash.ToString(); this.txtCashDate.Text = byId4.CashDate.ToString("yyyy-MM-dd"); this.txtApplicationReason.Text = byId4.ApplicationReason; this.txtpayee.Text = byId4.Payee; } } }
protected void InitPage() { PCPettyCash byId = this.pcSer.GetById(this.pcId); if (byId != null) { PTyhmc byId2 = this.yhmcSer.GetById(byId.Applicant); this.txtApplicant.Text = byId2.v_xm; this.txtDatetime.Text = byId.ApplicationDate.ToString("yyyy-MM-dd"); this.txtMoney.Text = System.Convert.ToString(byId.Cash); this.txtMatter.Text = byId.Matter; this.txtCashDate.Text = byId.CashDate.ToString("yyyy-MM-dd"); this.txtAmount.Text = this.GetAmountCash(this.pcId).ToString(); this.txtAuditAmount.Text = this.GetAuditAmount(this.pcId).ToString(); this.txtReportMoney.Text = (byId.Cash - this.GetAmountCash(this.pcId)).ToString(); this.txtOweMoney.Text = (byId.Cash - this.GetAuditAmount(this.pcId)).ToString(); if (byId.Project != null) { this.txtProject.Text = byId.Project.PrjName; } } }
private DepEmployee GetByEmployee(PTyhmc emp) { return(new DepEmployee { Id = emp.v_yhdm, Text = emp.v_xm, IconCls = "icon-member" }); }