예제 #1
0
        private int UpdateCollecting()
        {
            string    id     = Request.QueryString["id"];
            To_Income income = To_IncomeManager.GetModel(id);

            income.ComeDate        = DateTime.Parse(this.txtSKDate.Text.Trim());
            income.ComeMoney       = double.Parse(this.txtMoney.Text.Trim());
            income.ComeBankName    = this.ddlBank.SelectedItem.Text;
            income.ComeBankId      = int.Parse(this.ddlBank.SelectedValue);
            income.ComeBankAccount = this.lblBankAccount.Text;
            income.ComeDepart      = this.ddlDepart.SelectedItem.Text;   //所属部门
            income.ComeDepartId    = int.Parse(ddlDepart.SelectedValue); //所属部门id
            income.Remark          = this.txtMark.Value;                 //备注
            income.ComeUnit        = this.txtSKUnit.Text.Trim();
            income.SKTypeId        = Convert.ToInt32(ddlsktype.SelectedValue);
            income.SKType          = ddlsktype.SelectedValue == "0" ? "" : ddlsktype.SelectedItem.Text;

            return(To_IncomeManager.Update(income));
        }
예제 #2
0
        private void Load_InitialData()
        {
            string id = Request.QueryString["id"];

            if (!string.IsNullOrEmpty(id))
            {
                To_Income income = To_IncomeManager.GetModel(id);
                this.lblIncomeDate.Text        = income.ComeDate.ToString("yyyy-MM-dd");
                this.lblIncomeMoney.Text       = income.ComeMoney.ToString("0.00");
                this.lblIncomeBankName.Text    = income.ComeBankName;
                this.lblIncomeBankAccount.Text = income.ComeBankAccount;
                this.lblIncomeDepart.Text      = income.ComeDepart;
                this.LtrMark.Text       = income.Remark;
                this.lblmakeName.Text   = income.MakeName;
                this.lblmakeDate.Text   = income.MakeDate.ToString("yyyy-MM-dd");
                this.lblIncomeUnit.Text = income.ComeUnit;
                this.lblSktype.Text     = income.SKType;
            }
        }
예제 #3
0
        /// <summary>
        /// 加载初始信息
        /// </summary>
        private void Load_InitialData()
        {
            Load_Bank();
            Load_Depart();
            string id = Request.QueryString["id"];

            if (!string.IsNullOrEmpty(id))
            {
                To_Income income = To_IncomeManager.GetModel(id);
                this.txtSKDate.Text          = income.ComeDate.ToString("yyyy-MM-dd");
                this.txtMoney.Text           = income.ComeMoney.ToString("0.00");
                this.ddlBank.SelectedValue   = income.ComeBankId.ToString();
                this.lblBankAccount.Text     = income.ComeBankAccount;
                this.ddlDepart.SelectedValue = income.ComeDepartId.ToString();
                this.txtMark.Value           = income.Remark;
                this.lblMaker.Text           = income.MakeName;
                this.lblMakeDate.Text        = income.MakeDate.ToString("yyyy-MM-dd");
                this.txtSKUnit.Text          = income.ComeUnit;
                this.ddlsktype.SelectedValue = income.SKTypeId.ToString();
            }
        }