Exemplo n.º 1
0
    public void BindDdl()
    {
        DataTable dataTable = this.ptDutyAction.GetDdlPositionLevel();

        this.ddlPositionLevel.Items.Clear();
        for (int i = 0; i < dataTable.Rows.Count; i++)
        {
            string text = ConverRMB.ConvertU(System.Convert.ToInt32(dataTable.Rows[i][0].ToString())) + "级";
            this.ddlPositionLevel.Items.Add(new ListItem(text, dataTable.Rows[i][0].ToString()));
        }
        this.ddlPositionLevel.Items.Insert(0, "");
        DataTable postAndRank = this.ptDutyAction.GetPostAndRank(string.Empty);

        this.ddlPostAndRank.DataTextField  = "PostAndRank";
        this.ddlPostAndRank.DataValueField = "RecordID";
        this.ddlPostAndRank.DataSource     = postAndRank;
        this.ddlPostAndRank.DataBind();
        this.ddlPostAndRank.Items.Insert(0, "");
        DataTable dataSource = this.ptDutyAction.GetDdlEducationalBackground();

        this.ddlEducationalBackground.DataTextField  = "educationalBackground";
        this.ddlEducationalBackground.DataValueField = "educationalBackground";
        this.ddlEducationalBackground.DataSource     = dataSource;
        this.ddlEducationalBackground.DataBind();
        this.ddlEducationalBackground.Items.Insert(0, "");
        DataTable dataSource2 = this.ptDutyAction.GetDdlClassID();

        this.ddlClassID.DataTextField  = "ClassName";
        this.ddlClassID.DataValueField = "ClassID";
        this.ddlClassID.DataSource     = dataSource2;
        this.ddlClassID.DataBind();
        this.ddlClassID.Items.Insert(0, "");
    }
Exemplo n.º 2
0
 public string ConvertWay(string strPositionLevel)
 {
     if (!string.IsNullOrEmpty(strPositionLevel.Trim()))
     {
         strPositionLevel = ConverRMB.ConvertU(System.Convert.ToInt32(strPositionLevel.Trim())) + "级";
     }
     return(strPositionLevel);
 }
Exemplo n.º 3
0
    public void BindDdl()
    {
        DataTable ddlPositionLevel = this.ptDutyAction.GetDdlPositionLevel();

        this.ddltPositionLevel.Items.Clear();
        for (int i = 0; i < ddlPositionLevel.Rows.Count; i++)
        {
            string text = ConverRMB.ConvertU(System.Convert.ToInt32(ddlPositionLevel.Rows[i][0].ToString())) + "级";
            this.ddltPositionLevel.Items.Add(new ListItem(text, ddlPositionLevel.Rows[i][0].ToString()));
        }
        this.ddltPositionLevel.Items.Insert(0, "");
    }
Exemplo n.º 4
0
    private void InintUpdateState()
    {
        PayoutPaymentModel model = this.payoutPayment.GetModel(this.ViewState["PaymentId"].ToString());

        this.contractId            = model.ContractID;
        this.lblPaymentCode.Text   = model.PaymentCode;
        this.lblPaymentMoney.Text  = model.PaymentMoney.ToString();
        this.lblPaymentDate.Text   = model.PaymentDate.Value.ToShortDateString();
        this.lblPaymentPerson.Text = model.PaymentPerson;
        this.lblInputPerson.Text   = model.InputPerson;
        this.lblInputDate.Text     = model.InputDate.Value.ToShortDateString();
        this.lblNotes.Text         = model.Notes;
        decimal number = 0m;

        if (model.PaymentMoney.ToString() != "")
        {
            number = Convert.ToDecimal(model.PaymentMoney);
        }
        this.LblCapitalNumber.Text = ConverRMB.Convert(number);
        if (model.Paytype == -1)
        {
            this.LblPayType.Text = "";
        }
        if (model.Paytype == 0)
        {
            this.LblPayType.Text = "现金";
        }
        if (model.Paytype == 1)
        {
            this.LblPayType.Text = "支票";
        }
        if (model.Paytype == 2)
        {
            this.LblPayType.Text = "转账";
        }
        this.hldfIsFundPlan.Value = model.MonthPlanUID;
        List <string> fundPlanByMonthPlanUID = this.payoutPayment.GetFundPlanByMonthPlanUID(this.hldfIsFundPlan.Value);

        if (fundPlanByMonthPlanUID.Count > 0)
        {
            this.lblMonthDate.Text   = fundPlanByMonthPlanUID[1].ToString();
            this.lblPlanMoney.Text   = fundPlanByMonthPlanUID[2].ToString();
            this.lblUsedMoney.Text   = fundPlanByMonthPlanUID[4].ToString();
            this.lblUsableMoney.Text = fundPlanByMonthPlanUID[5].ToString();
            this.lblRemark.Text      = fundPlanByMonthPlanUID[6].ToString();
        }
        this.lblBeneficiary.Text = model.Beneficiary.Trim();
        this.lblBank.Text        = model.Bank.Trim();
        this.lalAccount.Text     = model.Account.Trim();
        this.InitContractInfo(this.contractId);
    }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (string.Compare(this.action, "Add", true) == 0)
         {
             this.InitAddState();
             this.TxtCapitalNumber.Value = ConverRMB.Convert(Convert.ToDecimal(0.0));
         }
         else
         {
             this.InintUpdateState();
         }
         this.hlfdAction.Value = this.action;
         this.FileLink1.MID    = 1913;
         this.FileLink1.FID    = this.ViewState["PaymentId"].ToString();
         this.FileLink1.Type   = 1;
     }
 }
Exemplo n.º 6
0
    public void InitPageInfor(string conId)
    {
        this.InitDepartment();
        this.lblPayMentDate.Text = DateTime.Now.ToShortDateString();
        PayoutContract      payoutContract = new PayoutContract();
        PayoutContractModel model          = payoutContract.GetModel(conId);

        this.lblContent.Text = model.ContractName;
        PayoutPaymentModel model2 = this.payoutPayment.GetModel(this.ViewState["PaymentId"].ToString());

        if (model2.Paytype == -1)
        {
            this.lblPayment.Text = "";
        }
        if (model2.Paytype == 0)
        {
            this.lblPayment.Text = "现金";
        }
        if (model2.Paytype == 1)
        {
            this.lblPayment.Text = "支票";
        }
        if (model2.Paytype == 2)
        {
            this.lblPayment.Text = "转账";
        }
        decimal number = 0m;

        if (model2.PaymentMoney.ToString() != "")
        {
            number = Convert.ToDecimal(model2.PaymentMoney);
        }
        this.lblMoney.Text        = model2.PaymentMoney.ToString();
        this.lblOperator.Text     = model2.InputPerson;
        this.lblCapital.Text      = ConverRMB.Convert(number);
        this.lblRecivePeople.Text = model2.Beneficiary.Trim();
        this.lblBank.Text         = model2.Bank.Trim();
        this.lblAccount.Text      = model2.Account.Trim();
        this.lblTotalMoney.Text   = model2.PaymentMoney.ToString();
        this.lblFileNumber.Text   = this.ser.GetNo("Con_Payout_Payment", this.ViewState["PaymentId"].ToString());
    }
Exemplo n.º 7
0
    private void InintUpdateState()
    {
        IncomentPaymentApplyModel byId = this.PaymentApply.GetById(this.ViewState["PaymentId"].ToString());

        this.contractId                = byId.ContractId;
        this.hlfdContractId.Value      = byId.ContractId;
        this.txtPaymentCode.Value      = byId.Code;
        this.txtPaymentPerson.Text     = byId.PaymentPenson;
        this.txtPaymentDate.Text       = byId.PaymentDate.ToShortDateString();
        this.txtPaymentMoney.Text      = byId.PaymentAmount.ToString("0.000");
        this.txtInputDate.Text         = byId.InputDate.ToString("yyyy-MM-dd");
        this.txtInputPerson.Text       = byId.InputPerson;
        this.TxtCapitalNumber.Value    = ConverRMB.Convert(byId.PaymentAmount);
        this.txtNotes.Text             = byId.Notes;
        this.chkContainPending.Checked = byId.ContainPending;
        string arg_104_0 = byId.PaymentMode;

        if (byId.PaymentMode != null && byId.PaymentMode.ToString() != "" && byId.PaymentMode != "-1")
        {
            this.RblPayType.SelectedValue = byId.PaymentMode.ToString();
        }
        this.InitContractInfo(this.contractId);
    }
Exemplo n.º 8
0
    private void InintUpdateState()
    {
        IncomentPaymentApplyModel byId = this.paymentApply.GetById(this.ViewState["PaymentId"].ToString());

        this.contractId            = byId.ContractId;
        this.lblPaymentCode.Text   = byId.Code;
        this.lblPaymentMoney.Text  = byId.PaymentAmount.ToString("0.000");
        this.lblPaymentDate.Text   = byId.PaymentDate.ToShortDateString();
        this.lblPaymentPerson.Text = byId.PaymentPenson;
        this.lblInputPerson.Text   = byId.InputPerson;
        this.lblInputDate.Text     = byId.InputDate.ToShortDateString();
        this.lblNotes.Text         = byId.Notes;
        decimal number = 0m;

        if (byId.PaymentAmount.ToString() != "")
        {
            number = Convert.ToDecimal(byId.PaymentAmount);
        }
        this.LblCapitalNumber.Text = ConverRMB.Convert(number);
        if (byId.PaymentMode == "-1")
        {
            this.LblPayType.Text = "";
        }
        if (byId.PaymentMode == "0")
        {
            this.LblPayType.Text = "现金";
        }
        if (byId.PaymentMode == "1")
        {
            this.LblPayType.Text = "支票";
        }
        if (byId.PaymentMode == "2")
        {
            this.LblPayType.Text = "转账";
        }
        this.InitContractInfo(this.contractId);
    }
Exemplo n.º 9
0
    private void InitUpdateAndQuery()
    {
        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();
        }
        this.materialWant.GetModel(this.wantplanCode);
        this.lblPrintDate.Text = System.DateTime.Now.ToShortDateString();
        PayoutContractModel model = this.payoutContract.GetModel(ContractManage_PayoutContract_ParyoutContractQuery.contractID);

        if (model != null)
        {
            this.bindTarget(ContractManage_PayoutContract_ParyoutContractQuery.contractID);
            this.txtProject.Text       = model.PrjName;
            this.txtPrjType.Text       = this.GetPrjTypeName(new System.Guid(model.PrjGuid));
            this.txtContractCode.Text  = model.ContractCode;
            this.txtContractName.Text  = model.ContractName;
            this.txtPreMoney.Text      = ((!model.PrepayMoney.HasValue) ? string.Empty : model.PrepayMoney.ToString());
            this.txtContractMoney.Text = ((!model.ContractMoney.HasValue) ? string.Empty : model.ContractMoney.ToString());
            this.txtModifiedMoney.Text = ((!model.ModifiedMoney.HasValue) ? string.Empty : model.ModifiedMoney.ToString());
            this.contractType.Text     = this.getContractName(model.TypeID);
            IncometContractBll   incometContractBll = new IncometContractBll();
            IncometContractModel model2             = incometContractBll.GetModel(model.InContractID);
            if (model2 != null)
            {
                PrjInfoModel arg_1CE_0 = model2.Project;
                this.txtIncomeContract.Text = ((model2.ContractName == null) ? "" : model2.ContractName);
            }
            else
            {
                this.txtIncomeContract.Text = "";
            }
            this.txtAName.Text    = model.AName;
            this.txtBName.Text    = model.CorpName;
            this.txtAddress.Text  = model.Address;
            this.txtSignDate.Text = ((!model.SignDate.HasValue) ? string.Empty : System.Convert.ToDateTime(model.SignDate).ToShortDateString());
            DataTable table  = Common2.GetTable("dbo.XPM_Basic_CodeList", "where typeId=27 and ParentCodeID=0");
            DataTable table2 = Common2.GetTable("dbo.XPM_Basic_CodeList", "where typeId=25 and ParentCodeID=0");
            if (table.Rows.Count > 0)
            {
                foreach (DataRow dataRow in table.Rows)
                {
                    if (dataRow["NoteID"].ToString() == model.BalanceMode)
                    {
                        this.txtBalanceMode.Text = dataRow["CodeName"].ToString();
                    }
                }
            }
            if (table2.Rows.Count > 0)
            {
                foreach (DataRow dataRow2 in table2.Rows)
                {
                    if (dataRow2["NoteID"].ToString() == model.PayMode)
                    {
                        this.txtdropPayMode.Text = dataRow2["CodeName"].ToString();
                    }
                }
            }
            this.txtStartDate.Text        = ((!model.StartDate.HasValue) ? string.Empty : System.Convert.ToDateTime(model.StartDate).ToShortDateString());
            this.txtEndDate.Text          = ((!model.EndDate.HasValue) ? string.Empty : System.Convert.ToDateTime(model.EndDate).ToShortDateString());
            this.txtPaymentCondition.Text = model.PaymentCondition;
            this.txtMainItem.Text         = model.MainItem;
            this.txtNotes.Text            = model.Notes;
            this.txtCapitalNumber.Text    = ((model.CapitalNumber == null) ? "" : model.CapitalNumber.ToString());
            this.txtfinanceNumber.Text    = ((model.FinanceNumber == null) ? "" : model.FinanceNumber.ToString());
            this.txtfinanceProject.Text   = ((model.FinanceProject == null) ? "" : model.FinanceProject.ToString());
            this.Literal1.Text            = this.FilesBind(1901, model.ContractID);
            if (model.ContractMoney.ToString() == "")
            {
                this.txtCapitalNumber.Text = ConverRMB.Convert(0m);
            }
            else
            {
                decimal number = System.Convert.ToDecimal(model.ContractMoney);
                this.txtCapitalNumber.Text = ConverRMB.Convert(number);
            }
            if (model.ModifiedMoney.ToString() == "")
            {
                this.txtCapitalizationModifiedMoney.Text = ConverRMB.Convert(0m);
            }
            else
            {
                decimal number2 = System.Convert.ToDecimal(model.ModifiedMoney);
                this.txtCapitalizationModifiedMoney.Text = ConverRMB.Convert(number2);
            }
            string key;
            switch (key = model.ConState.ToString())
            {
            case "0":
                this.txtTypeName.Text = "执 行";
                return;

            case "1":
                this.txtTypeName.Text = "中 止";
                return;

            case "2":
                this.txtTypeName.Text = "保 内";
                return;

            case "3":
                this.txtTypeName.Text = "保 外";
                return;

            case "4":
                this.txtTypeName.Text = "解 除";
                return;

            case "5":
                this.txtTypeName.Text = "终 止";
                return;
            }
            this.txtTypeName.Text = "----";
        }
    }