public AddUpdateCommodityTypeFrm(MaintainType type, CommodityTypeModel model) { InitializeComponent(); this.commodityTypeModel = model; this.maintainType = type; InitControls(); }
public AddUpdateCityExLogisticsAmountFrm(MaintainType type, CityExLogisticsAmountModel model) { InitializeComponent(); this.advModel = model; this.maintainType = type; InitControls(); }
public AddUpdateBrandFrm(MaintainType type, BrandModel model) { InitializeComponent(); this.brandModel = model; this.maintainType = type; this.previousImg = this.brandModel.BrandImg; InitControls(); }
public AddUpdateCommdityFrm(MaintainType type, CommodityModel commodity) { InitializeComponent(); this.commdodityModel = commodity; this.maintainType = type; this.previousImg = this.commdodityModel.CommodityImg; InitControls(); }
public AddUpdateADFrm(MaintainType type, AdvModel model) { InitializeComponent(); this.advModel = model; this.maintainType = type; this.previousImg = this.advModel.AdvImage; InitControls(); }
public AddUpdateExFrm(MaintainType type, ExLogisticModel model) { InitializeComponent(); this.maintainType = type; if (this.maintainType == MaintainType.New) { this.exModel = new ExLogisticModel(); } else { this.exModel = model; } InitControls(); }
public AddUpdateCityFrm(MaintainType type, CityModel model) { InitializeComponent(); this.maintainType = type; if (this.maintainType == MaintainType.New) { this.cityModel = new CityModel(); } else { this.cityModel = model; } InitControls(); }
/// <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(""); } }
/// <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(""); } }