예제 #1
0
 public Produtions(Production_Orderdetail_View pro)
 {
     //生产管理表Id
     this.Id = pro.Id;
     //订单编号
     this.OrderNo = pro.OrderNo;
     //时间
     this.OrderTime = pro.OrderTime.ParseString();
     //设计师状态
     this.DesignerStatus = pro.DesignerStatus;
     //生产状态
     this.ProductionStatus = pro.ProductionStatus;
     //订单状态
     this.OrderStatus = pro.OrderStatus == "设计已处理" ? "已处理" : pro.OrderStatus;
     //用户名
     this.userName = pro.userName;
     //电话
     this.Phone = pro.Phone;
     //地址
     this.CompanyAddr = pro.CompanyAddr;
     //产品名
     this.commodityName = pro.commodityName == null ? "暂无此产品" : pro.commodityName;
     //产品编号
     this.commodityId = pro.ProductNo == null ? "暂无编号" : pro.ProductNo;
     //数量
     this.Amount = pro.Amount;
     //金额
     this.PayMoney = pro.PayMoney;
     //交货时间
     this.deliveryTime = pro.deliveryTime.ParseString();
     //订单类型
     this.OrderType = pro.OrderType;
     //品检状态
     this.InspectionStatus = pro.InspectionStatus;
     //退回原因
     this.ReturnContext = pro.ReturnContext;
     //退回次数
     this.ReturnCount = pro.ReturnCount;
     //客服反馈
     this.ServiceContext = pro.ServiceContext;
     //生产注意事项
     this.InspectionContext = pro.InspectionContext;
 }
 /// <summary>
 /// 根据分页筛选数据
 /// </summary>
 /// <param name="Key">主键</param>
 /// <param name="start">开始数据</param>
 /// <param name="PageSize">页面长度</param>
 /// <param name="desc">排序</param>
 /// <param name="model">对象</param>
 /// <returns>对象列表</returns>
 public List <Production_Orderdetail_View> SelectByPage(string Key, int start, int PageSize, bool desc, Production_Orderdetail_View model, string SelectFiled)
 {
     return(Production_Orderdetail_ViewOper.Instance.SelectByPage(Key, start, PageSize, desc, model));
 }
 /// <summary>
 /// 数据条数
 /// </summary>
 /// <param name="model">模型</param>
 /// <returns>对象列表</returns>
 public int SelectCount(Production_Orderdetail_View model)
 {
     return(Production_Orderdetail_ViewOper.Instance.SelectCount(model));
 }
 /// <summary>
 /// 筛选全部数据
 /// </summary>
 /// <param name="model">模型</param>
 /// <returns>对象列表</returns>
 public List <Production_Orderdetail_View> SelectByModel(Production_Orderdetail_View model)
 {
     return(Production_Orderdetail_ViewOper.Instance.SelectAll(model));
 }