Ejemplo n.º 1
0
    private void InitContractInfo(string conId)
    {
        PayoutContract      payoutContract = new PayoutContract();
        PayoutContractModel model          = payoutContract.GetModel(conId);

        this.lblContractCode.Text = model.ContractCode;
        this.lblContractName.Text = model.ContractName;
        this.lblPrintDate.Text    = DateTime.Now.ToShortDateString();
        string    userCode  = this.Session["yhdm"].ToString();
        DataTable dataTable = PersonnelAction.QueryPersonnelById(userCode);

        if (dataTable != null && dataTable.Rows.Count == 1)
        {
            this.lblBllProducer.Text = dataTable.Rows[0]["v_xm"].ToString();
        }
        decimal balancedAmount = new PayoutBalance().GetBalancedAmount(conId, false);

        this.lblBalancedSum.Text = balancedAmount.ToString("0.000");
        bool    containPending = this.payoutPayment.GetModel(this.ViewState["PaymentId"].ToString()).ContainPending;
        decimal paySum         = this.payoutPayment.GetPaySum(this.contractId, containPending);

        this.lblPaySum.Text = paySum.ToString("0.000");
        decimal num = balancedAmount - paySum;

        this.lblDiff.Text          = num.ToString("0.000");
        this.lblContractMoney.Text = model.ModifiedMoney.ToString();
        this.lblSignedDate.Text    = model.SignDate.Value.ToShortDateString();
    }
Ejemplo n.º 2
0
    private void InitContractInfo(string conId)
    {
        PayoutContract      payoutContract = new PayoutContract();
        PayoutContractModel model          = payoutContract.GetModel(conId);

        this.txtContractCode.Text = model.ContractCode;
        this.txtContractName.Text = model.ContractName;
        decimal balancedAmount = new PayoutBalance().GetBalancedAmount(conId, false);

        this.txtBalancedSum.Text = balancedAmount.ToString();
        decimal paySum = this.payoutPayment.GetPaySum(conId, this.chkContainPending.Checked);

        this.txtPaySum.Text = paySum.ToString();
        decimal num = balancedAmount - paySum;

        this.txtDiff.Text          = num.ToString();
        this.txtContractMoney.Text = model.ModifiedMoney.ToString();
        this.txtSignedDate.Text    = model.SignDate.Value.ToShortDateString();
    }