Ejemplo n.º 1
0
 private void loaddata()
 {
     if (Session["hui_mod"] == null)
     {
         Maticsoft.Common.MessageBox.ShowAndRedirect(this, "没有数据,请核实", "add.aspx");
     }
     else
     {
         Maticsoft.Model.hui_kuan_dan hui_mod = new Model.hui_kuan_dan();
         hui_mod = (Maticsoft.Model.hui_kuan_dan)Session["hui_mod"];
         huikuan_neirong.Text   = hui_mod.huikuan_neirong;
         xiangmu_mingcheng.Text = hui_mod.xiangmu_mingcheng;
         xiangmu_zongkuan.Text  = string.Format("{0:F}", hui_mod.xiangmu_zongkuan);
         yifu_jine.Text         = hui_mod.yifu_jine.ToString();
         zhifu_shijian.Text     = hui_mod.zhifu_shijian.ToString();
         benci_jine.Text        = string.Format("{0:F}", hui_mod.benci_jine);
         yuji_yukuan.Text       = hui_mod.yuji_yukuan.ToString();
         int supplier_id = Convert.ToInt16(hui_mod.supplier_id);
         Maticsoft.Model.supplier sup_mod = new Model.supplier();
         Maticsoft.BLL.supplier   sup_bll = new BLL.supplier();
         sup_mod        = sup_bll.GetModel(supplier_id);
         name.Text      = sup_mod.name;
         bank.Text      = sup_mod.bank;
         bank_num.Text  = sup_mod.bank_num;
         date_time.Text = DateTime.Today.ToShortDateString();
         RMB.Text       = Maticsoft.Common.Rmb.CmycurD(Convert.ToDecimal(hui_mod.benci_jine));
     }
 }
Ejemplo n.º 2
0
        private void loaddata()
        {
            int detail_id = Convert.ToInt16(Request.QueryString["detail_id"]);

            Maticsoft.BLL.account_view   acc_v_bll = new BLL.account_view();
            Maticsoft.Model.account_view acc_v_mod = new Model.account_view();
            acc_v_mod = acc_v_bll.GetModel(detail_id);
            txtxiangmu_mingcheng.Text = txthuikuan_neirong.Text = acc_v_mod.peixunban.Trim() + acc_v_mod.wuzi.Trim();
            txtbenci_jine.Text        = txtxiangmu_zongkuan.Text = acc_v_mod.xiaoji.ToString().Trim();
            Maticsoft.BLL.supplier sup_bll = new BLL.supplier();
            DropDownList1.DataSource     = sup_bll.GetList("");
            DropDownList1.DataTextField  = "name";
            DropDownList1.DataValueField = "id";
            DropDownList1.DataBind();
        }