Exemplo n.º 1
0
    public string GetPettyCashMatter(object pettyCashId)
    {
        PCPettyCashService pCPettyCashService = new PCPettyCashService();

        if (pettyCashId != null)
        {
            PCPettyCash byId = pCPettyCashService.GetById(pettyCashId.ToString());
            if (byId != null)
            {
                return(byId.Matter);
            }
        }
        return(string.Empty);
    }
Exemplo n.º 2
0
    private void InitDiary()
    {
        BudIndirectDiaryCost byId = this.diarySer.GetById(this.diaryId);

        this.lblName.Text       = byId.Name;
        this.lblInputDate.Text  = byId.InputDate.ToString("yyyy-MM-dd");
        this.lblDepartment.Text = byId.Department;
        this.lblInputUser.Text  = byId.InputUser;
        this.lblIssueBy.Text    = byId.IssuedBy;
        this.lblCode.Text       = byId.IndireCode;
        if (byId.CostType == "P")
        {
            PTPrjInfoService pTPrjInfoService = new PTPrjInfoService();
            PTPrjInfo        byId2            = pTPrjInfoService.GetById(byId.ProjectId);
            if (byId2 != null)
            {
                this.lblPrjName.Text = byId2.PrjName;
            }
        }
        else
        {
            this.ltlCostTypeName.Text = "组织机构";
            PTdbmService pTdbmService = new PTdbmService();
            PTdbm        byId3        = pTdbmService.GetById(byId.ProjectId);
            if (byId3 != null)
            {
                this.lblPrjName.Text = byId3.V_bmqc;
            }
        }
        PCPettyCashService pCPettyCashService = new PCPettyCashService();
        PCPettyCash        byId4 = pCPettyCashService.GetById(byId.PettyCashId);

        if (byId4 != null)
        {
            this.lblPettyCash.Text = byId4.Matter;
        }
    }