Ejemplo n.º 1
0
        private void ShowInfo(int _id)
        {
            BLL.CheckRecord   bll   = new BLL.CheckRecord();
            Model.CheckRecord model = bll.GetModel(_id);

            ddlCustomer.SelectedValue = model.CustomerId.ToString();
            GoodsBind(model.CustomerId);
            ddlGoods.SelectedValue        = model.GoodsId.ToString();
            ddlVehicle.SelectedValue      = model.VehicleId.ToString();
            ddlHandlingMode.SelectedValue = model.HandlingModeId.ToString();
            txtCheckTime.Text             = model.CheckTime.ToString("yyyy-MM-dd");
            txtInspectionNumber.Text      = model.InspectionNumber;
            txtCaseNumber.Text            = model.CaseNumber;
            txtCheckResult.Text           = model.CheckResult;
            txtRealName.Text = model.RealName;
            txtLinkTel.Text  = model.LinkTel;
            txtAdmin.Text    = model.Admin;
            txtRemark.Text   = model.Remark;

            BLL.CheckCost checkCostBLL = new BLL.CheckCost();
            DataTable     checkCostDT  = checkCostBLL.GetList(" CheckRecordId = " + _id + "").Tables[0];

            this.rptCostList.DataSource = checkCostDT;
            this.rptCostList.DataBind();
        }
Ejemplo n.º 2
0
 private void RptBind(string _strWhere, string _orderby)
 {
     BLL.CheckCost bll = new BLL.CheckCost();
     this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby);
     this.rptList.DataBind();
 }
Ejemplo n.º 3
0
        private void ShowInfo(int _id)
        {
            BLL.CheckRecord bll = new BLL.CheckRecord();
            Model.CheckRecord model = bll.GetModel(_id);

            ddlCustomer.SelectedValue = model.CustomerId.ToString();
            GoodsBind(model.CustomerId);
            ddlGoods.SelectedValue = model.GoodsId.ToString();
            ddlVehicle.SelectedValue = model.VehicleId.ToString();
            ddlHandlingMode.SelectedValue = model.HandlingModeId.ToString();
            txtCheckTime.Text = model.CheckTime.ToString("yyyy-MM-dd");
            txtInspectionNumber.Text = model.InspectionNumber;
            txtCaseNumber.Text = model.CaseNumber;
            txtCheckResult.Text = model.CheckResult;
            txtRealName.Text = model.RealName;
            txtLinkTel.Text = model.LinkTel;
            txtAdmin.Text = model.Admin;
            txtRemark.Text = model.Remark;

            BLL.CheckCost checkCostBLL = new BLL.CheckCost();
            DataTable checkCostDT = checkCostBLL.GetList(" CheckRecordId = " + _id + "").Tables[0];
            this.rptCostList.DataSource = checkCostDT;
            this.rptCostList.DataBind();
        }
Ejemplo n.º 4
0
 private void RptBind(string _strWhere, string _orderby)
 {
     BLL.CheckCost bll = new BLL.CheckCost();
     this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby);
     this.rptList.DataBind();
 }