Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            WXZD();
            JC();
            CL();
            GS();
            JG();
            QT();
            //QT2();
            AutoRepair.Entity.T_RepairDocumentEntity rd = AutoRepair.BLL.T_RepairDocumentBLL.GetInstance().GetAdminSingle(id);

            if (rd != null)
            {
                UnitName       = rd.UnitName.ToString();                  //承修方名字
                RepairMan      = rd.RepairMan.ToString();                 //送修人
                PlateNumber    = rd.PlateNumber.ToString();               //车牌号码
                AutoBrand      = rd.AutoBrand.ToString();                 //厂牌型号
                RepairSort     = rd.RepairSort.ToString();                //维修类别
                SignDate       = DateTime.Parse(rd.SignDate.ToString());  //进厂日期
                ContractNumber = rd.ContractNumber.ToString();            //合同编号
                RepairNumber   = rd.RepairNumber.ToString();              //工单号码
                Mileage        = rd.Mileage.ToString();                   //出厂里程
                HGZH           = rd.HGZH.ToString();                      //合格证号
                Phone          = rd.Phone.ToString();                     //托修方电话
                Remark         = rd.Remark.ToString();                    //备注

                ZDF           = decimal.Parse(rd.ZDF.ToString());         //维修诊断费
                JCF           = decimal.Parse(rd.JCF.ToString());         //检测费
                CLF           = decimal.Parse(rd.CLF.ToString());         //材料费
                GSF           = decimal.Parse(rd.GSF.ToString());         //工时费
                JGF           = decimal.Parse(rd.JGF.ToString());         //加工费
                QTF           = decimal.Parse(rd.QTF.ToString());         //其它费用
                TotalMoney    = decimal.Parse(rd.TotalMoney.ToString());  //合计金额
                AutoType      = rd.AutoType.ToString();                   //车辆类型
                EngineNumber  = rd.EngineNumber.ToString();               //发动机号
                ChassisNumber = rd.ChassisNumber.ToString();              //底盘号
                CheckMan      = rd.CheckMan.ToString();                   //质检人
                FinishDate    = DateTime.Parse(rd.FinishDate.ToString()); //修竣日期
                UploadTime    = DateTime.Parse(rd.UploadTime.ToString()); //提交时间
            }
            //AutoRepair.Entity.T_RepairCLEntity re = AutoRepair.BLL.T_RepairCLBLL.GetInstance().GetAdminSingle(id);
            //if(re!=null){
            //    ItemName = re.ItemName.ToString();//材料名称
            //    ItemUnit = re.ItemUnit.ToString();//计量单位
            //    Amount = decimal.Parse(re.Amount.ToString());//数量
            //    Price = decimal.Parse(re.Price.ToString());//单价
            //    Money = decimal.Parse(re.Money.ToString());//金额
            //}

            //AutoRepair.Entity.T_RepairGSEntity ge = AutoRepair.BLL.T_RepairGSBLL.GetInstance().GetAdminSingle(id);
            //if(ge!=null){
            //    WorkTime = decimal.Parse(ge.WorkTime.ToString());//工时
            //}
        }
    }
 protected override void BasePage_Load(tb_UsersEntity user)
 {
     if (user != null)
     {
         AutoRepair.Entity.T_RepairDocumentEntity model = AutoRepair.BLL.T_RepairDocumentBLL.GetInstance().GetAdminSingle(id);
         if (model != null)
         {
             UnitName     = model.UnitName;
             UnitPhone    = model.UnitPhone;
             UnitAddress  = model.UnitAddress;
             RepairNumber = model.RepairNumber;
             PlateNumber  = model.PlateNumber;
             CarColor     = model.CarColor;
             AutoType     = model.AutoType;
             SignDate     = model.SignDate;
             FinishDate   = model.FinishDate;
             TotalMoney   = model.TotalMoney;
         }
     }
 }