Esempio n. 1
0
 public AddUpdateCommodityTypeFrm(MaintainType type, CommodityTypeModel model)
 {
     InitializeComponent();
     this.commodityTypeModel = model;
     this.maintainType       = type;
     InitControls();
 }
Esempio n. 2
0
 public AddUpdateCityExLogisticsAmountFrm(MaintainType type, CityExLogisticsAmountModel model)
 {
     InitializeComponent();
     this.advModel     = model;
     this.maintainType = type;
     InitControls();
 }
Esempio n. 3
0
 public AddUpdateBrandFrm(MaintainType type, BrandModel model)
 {
     InitializeComponent();
     this.brandModel   = model;
     this.maintainType = type;
     this.previousImg  = this.brandModel.BrandImg;
     InitControls();
 }
Esempio n. 4
0
 public AddUpdateCommdityFrm(MaintainType type, CommodityModel commodity)
 {
     InitializeComponent();
     this.commdodityModel = commodity;
     this.maintainType    = type;
     this.previousImg     = this.commdodityModel.CommodityImg;
     InitControls();
 }
Esempio n. 5
0
 public AddUpdateADFrm(MaintainType type, AdvModel model)
 {
     InitializeComponent();
     this.advModel     = model;
     this.maintainType = type;
     this.previousImg  = this.advModel.AdvImage;
     InitControls();
 }
Esempio n. 6
0
 public AddUpdateExFrm(MaintainType type, ExLogisticModel model)
 {
     InitializeComponent();
     this.maintainType = type;
     if (this.maintainType == MaintainType.New)
     {
         this.exModel = new ExLogisticModel();
     }
     else
     {
         this.exModel = model;
     }
     InitControls();
 }
Esempio n. 7
0
 public AddUpdateCityFrm(MaintainType type, CityModel model)
 {
     InitializeComponent();
     this.maintainType = type;
     if (this.maintainType == MaintainType.New)
     {
         this.cityModel = new CityModel();
     }
     else
     {
         this.cityModel = model;
     }
     InitControls();
 }
Esempio n. 8
0
            /// <summary>
            /// 根据请求类型、故障分类编号获取故障分类字段描述
            /// </summary>
            /// <param name="requestType">请求类型</param>
            /// <param name="faultType">故障分类编号</param>
            /// <returns>故障分类字段描述</returns>
            public static string GetFaultTypeDesc(int requestType, int faultType)
            {
                switch (requestType)
                {
                case Repair:
                    return(MachineStatuses.GetMachineStatusesDesc(faultType));

                case Maintain:
                    return(MaintainType.GetMaintainTypeDesc(faultType));

                case Inspection:
                    return(InspectionType.GetInspectionDesc(faultType));

                case AdverseEvent:
                    return(AdverseEventType.GetAdverseEventDesc(faultType));

                default:
                    return("");
                }
            }
Esempio n. 9
0
        /// <summary>
        /// 根据请求类型及故障分类编号获取字段信息描述
        /// </summary>
        /// <param name="requestTypeID">请求类型</param>
        /// <param name="typeID">故障分类编号</param>
        /// <returns>字段信息描述</returns>
        public static string GetDescFaultType(int requestTypeID, int typeID)
        {
            switch (requestTypeID)
            {
            case RequestTypes.Repair:
                return(FaultTypes.GetFaultTypeDesc(typeID));

            case RequestTypes.Maintain:
                return(MaintainType.GetMaintainTypeDesc(typeID));

            case RequestTypes.Inspection:
                return(InspectionType.GetInspectionDesc(typeID));

            case RequestTypes.AdverseEvent:
                return(AdverseEventType.GetAdverseEventDesc(typeID));

            default:
                return("");
            }
        }