天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1687 lines
60 KiB

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Windows.Forms;
using QM.Common;
namespace QM.Account
{
///<summary>
/// 模块编号:QM.Account.AccountEnumSource
/// 作 用:Enum数据源
/// 作 者:孙高峰
/// 编写日期:2008-07-16
///</summary>
public class AccountEnumSource
{
#region 属性
private ArrayList m_OrderSerialModeListSrc = new ArrayList();
/// <summary>
/// 订单序列号分配方式数据源列表
/// Key 为 AccountEnum.OrderSerialMode Value 为"计划"、"工位"
/// </summary>
public ArrayList OrderSerialModeListSrc
{
get
{
return this.m_OrderSerialModeListSrc;
}
}
private ArrayList m_OrderNoModeListSrc = new ArrayList();
/// <summary>
/// 订单号分配方式数据源列表
/// Key 为 AccountEnum.OrderNoMode Value 为"内部分配"、"外部分配"
/// </summary>
public ArrayList OrderNoModeListSrc
{
get
{
return this.m_OrderNoModeListSrc;
}
}
private ArrayList m_SerialRuleTypeSrc = new ArrayList();
/// <summary>
/// 序列号规则位段类型数据源列表
/// Key 为 AccountEnum.SerialRuleType Value 为"数字类型"、"英文字符"
/// </summary>
public ArrayList SerialRuleTypeSrc
{
get
{
return this.m_SerialRuleTypeSrc;
}
}
private ArrayList m_ManagerList = new ArrayList();
/// <summary>
/// 是否为部门管理人员数据源列表
/// Key 为 EnumStatus.IsManager Value 为"是"、"否"
/// </summary>
public ArrayList IsManagerList
{
get
{
return this.m_ManagerList;
}
}
private ArrayList m_SexList = new ArrayList();
/// <summary>
/// 返回性别数据源列表
/// Key 为 EnumStatus.StaffSex Value 为"男"、"女"
/// </summary>
public ArrayList SexList
{
get
{
return this.m_SexList;
}
}
private ArrayList m_Controlled = new ArrayList();
/// <summary>
/// 是否受限数据源列表
/// Key 为 EnumStatus.IsControlled Value 为"受限用户"、"非受限用户"
/// </summary>
public ArrayList IsControlledList
{
get
{
return this.m_Controlled;
}
}
private ArrayList m_PurviewType = new ArrayList();
/// <summary>
/// 权限数据源列表
/// Key 为 EnumStatus.PurviewType"
/// </summary>
public ArrayList PurviewTypeList
{
get
{
return this.m_PurviewType;
}
}
private ArrayList m_FormDataModeList = new ArrayList();
/// <summary>
/// 权限数据源列表
/// Key 为 EnumStatus.PurviewType"
/// </summary>
public ArrayList FormDataModeList
{
get
{
return this.m_FormDataModeList;
}
}
private ArrayList m_PageSize = new ArrayList();
/// <summary>
/// 分页页数数据源列表
/// Key 为 AccountEnum.State Value 为"10"、"20"、"50"、"100"
/// </summary>
public ArrayList PageSize
{
get
{
return this.m_PageSize;
}
}
private ArrayList m_UserType = new ArrayList();
/// <summary>
/// 用户类型
/// value为"超级用户" , "Guest用户","内部用户","缓冲区操作员","巡线操作员"
/// </summary>
public ArrayList UserType
{
get
{
return this.m_UserType;
}
}
private ArrayList m_OperateState = new ArrayList();
/// <summary>
/// 用户类型
/// value为"手动处理" , "自动处理"
/// </summary>
public ArrayList OperateState
{
get
{
return this.m_OperateState;
}
}
private ArrayList m_TimeType = new ArrayList();
/// <summary>
/// 时间类型
/// value为"秒" , "分"
/// </summary>
public ArrayList TimeType
{
get
{
return this.m_TimeType;
}
}
private ArrayList m_ExceptionPlace = new ArrayList();
/// <summary>
/// 差异汇报点
/// value为"高架区汇报","滑移区汇报"
/// </summary>
public ArrayList ExceptionPlace
{
get
{
return this.m_ExceptionPlace;
}
}
private ArrayList m_GLTExceptionPlace = new ArrayList();
/// <summary>
/// GLT差异汇报点
/// value为"理货区汇报","上线汇报"
/// </summary>
public ArrayList GLTExceptionPlace
{
get
{
return this.m_GLTExceptionPlace;
}
}
private ArrayList m_SolutionFlag = new ArrayList();
/// <summary>
/// 解决标识
/// value为"是","否"
/// </summary>
public ArrayList SolutionFlag
{
get
{
return this.m_SolutionFlag;
}
}
private ArrayList m_ExceptionType = new ArrayList();
/// <summary>
/// 解决标识
/// value为"差异","HU时间","汇报","SAP差异"
/// </summary>
public ArrayList ExceptionType
{
get
{
return this.m_ExceptionType;
}
}
private ArrayList m_FlowRequsetType = new ArrayList();
/// <summary>
/// 缓冲区要料状态
/// value为"新建" , "锁定", "备料完成" , "部分送料" , "完成" , "作废" , "过账完成"
/// </summary>
public ArrayList FlowRequsetType
{
get
{
return this.m_FlowRequsetType;
}
}
private ArrayList m_ElevateRequsetType = new ArrayList();
/// <summary>
/// 库房要料状态
/// value为"新建" , "确认", "完成"
/// </summary>
public ArrayList ElevateRequsetType
{
get
{
return this.m_ElevateRequsetType;
}
}
private ArrayList m_Line = new ArrayList();
/// <summary>
/// 生产线
/// value为"NCS" , "NF"
/// </summary>
public ArrayList Line
{
get
{
return this.m_Line;
}
}
private ArrayList m_DelFlag = new ArrayList();
/// <summary>
/// 缓冲区要料状态
/// value为"0-新建,1-锁定,2-备料完成,3-送到库位,5-作废,7-填充完成,8-过帐完成"
/// </summary>
public ArrayList DelFlag
{
get
{
return this.m_DelFlag;
}
}
private ArrayList m_WorkRequestType = new ArrayList();
/// <summary>
/// 生产线要料状态
/// value为"0-新建,1-锁定,2-备料完成,3-转库完成,4-捡料完成,5-作废,6-送料完成,7-过帐完成"
/// </summary>
public ArrayList WorkRequestType
{
get
{
return this.m_WorkRequestType;
}
}
private ArrayList m_ShowHour = new ArrayList();
/// <summary>
/// 小时
/// </summary>
public ArrayList ShowHour
{
get
{
return this.m_ShowHour;
}
}
private ArrayList m_SendingType = new ArrayList();
/// <summary>
/// 上线方式
/// </summary>
public ArrayList SendingType
{
get
{
return this.m_SendingType;
}
}
private ArrayList m_StorageArea = new ArrayList();
/// <summary>
/// 存储区标识
/// </summary>
public ArrayList StorageArea
{
get
{
return this.m_StorageArea;
}
}
private ArrayList m_MatType = new ArrayList();
/// <summary>
/// 物料种类
/// </summary>
public ArrayList MatType
{
get
{
return this.m_MatType;
}
}
private ArrayList m_FlagBatch = new ArrayList();
/// <summary>
/// 批量件标示
/// </summary>
public ArrayList FlagBatch
{
get
{
return this.m_FlagBatch;
}
}
private ArrayList m_WorkType = new ArrayList();
/// <summary>
/// 操作类别
/// </summary>
public ArrayList WorkType
{
get
{
return this.m_WorkType;
}
}
private ArrayList m_AutoteQuest = new ArrayList();
/// <summary>
/// 自动要货标示
/// </summary>
public ArrayList AutoteQuest
{
get
{
return this.m_AutoteQuest;
}
}
private ArrayList m_DefaultFlag = new ArrayList();
/// <summary>
/// 缺省选择标识
/// </summary>
public ArrayList DefaultFlag
{
get
{
return this.m_DefaultFlag;
}
}
private ArrayList m_OrderStatus = new ArrayList();
/// <summary>
/// 状态提醒
/// </summary>
public ArrayList OrderStatus
{
get
{
return this.m_OrderStatus;
}
}
private ArrayList m_TransType = new ArrayList();
/// <summary>
/// 转移目的地类别
/// </summary>
public ArrayList TransType
{
get
{
return this.m_TransType;
}
}
private ArrayList m_FormType = new ArrayList();
/// <summary>
/// 备件标示
/// </summary>
public ArrayList FormType
{
get
{
return this.m_FormType;
}
}
private ArrayList m_OrderFlag = new ArrayList();
/// <summary>
/// 操作类别
/// </summary>
public ArrayList OrderFlag
{
get
{
return this.m_OrderFlag;
}
}
private ArrayList m_FISMatType = new ArrayList();
/// <summary>
/// FIS物料种类
/// </summary>
public ArrayList FISMatType
{
get
{
return this.m_FISMatType;
}
}
private ArrayList m_MaterialFlag = new ArrayList();
/// <summary>
/// 物料标识
/// </summary>
public ArrayList MaterialFlag
{
get
{
return this.m_MaterialFlag;
}
}
private ArrayList m_FlagComplete = new ArrayList();
/// <summary>
/// 完成标识
/// </summary>
public ArrayList FlagComplete
{
get
{
return this.m_FlagComplete;
}
}
private ArrayList m_RequestStationType = new ArrayList();
/// <summary>
/// 送料位置类别
/// </summary>
public ArrayList RequestStationType
{
get
{
return this.m_RequestStationType;
}
}
private ArrayList m_Print = new ArrayList();
/// <summary>
/// 打印机1,2
/// </summary>
public ArrayList Print
{
get
{
return this.m_Print;
}
}
private ArrayList m_Print1 = new ArrayList();
/// <summary>
/// 打印机3,4
/// </summary>
public ArrayList Print1
{
get
{
return this.m_Print1;
}
}
private ArrayList m_Finish = new ArrayList();
/// <summary>
/// 成品库
/// </summary>
public ArrayList Finish
{
get
{
return this.m_Finish;
}
}
private ArrayList m_CreateType = new ArrayList();
/// <summary>
/// 创建类别
/// </summary>
public ArrayList CreateType
{
get
{
return this.m_CreateType;
}
}
private ArrayList m_Deliverd = new ArrayList();
/// <summary>
/// 完成标识(外向交付)
/// </summary>
public ArrayList Deliverd
{
get
{
return this.m_Deliverd;
}
}
private ArrayList m_Report = new ArrayList();
/// <summary>
/// 汇报标示
/// </summary>
public ArrayList Report
{
get
{
return this.m_Report;
}
}
private ArrayList m_ReportStatus = new ArrayList();
/// <summary>
/// 看板状态
/// </summary>
public ArrayList ReportStatus
{
get
{
return this.m_ReportStatus;
}
}
private ArrayList m_StorageAreaQuery = new ArrayList();
/// <summary>
/// 物料类型(查询)
/// </summary>
public ArrayList StorageAreaQuery
{
get
{
return this.m_StorageAreaQuery;
}
}
private ArrayList m_Plant = new ArrayList();
/// <summary>
/// 工厂
/// </summary>
public ArrayList Plant
{
get
{
return this.m_Plant;
}
}
private ArrayList m_StorageSite = new ArrayList();
/// <summary>
/// 存储地点
/// </summary>
public ArrayList StorageSite
{
get
{
return this.m_StorageSite;
}
}
private ArrayList m_PartType = new ArrayList();
/// <summary>
/// 零件类型
/// </summary>
public ArrayList PartType
{
get
{
return this.m_PartType;
}
}
private ArrayList m_KeyPartFlg = new ArrayList();
/// <summary>
/// 关键件标识
/// </summary>
public ArrayList KeyPartFlg
{
get
{
return this.m_KeyPartFlg;
}
}
private ArrayList m_ReturnType = new ArrayList();
/// <summary>
/// 退货单类型
/// </summary>
public ArrayList ReturnType
{
get
{
return this.m_ReturnType;
}
}
private ArrayList m_MFGWorkType = new ArrayList();
/// <summary>
/// MFG作业类型
/// </summary>
public ArrayList MFGWorkType
{
get
{
return this.m_MFGWorkType;
}
}
private ArrayList m_SolveFlag = new ArrayList();
/// <summary>
/// 解决标记
/// </summary>
public ArrayList SolveFlag
{
get
{
return this.m_SolveFlag;
}
}
private ArrayList m_FISType = new ArrayList();
/// <summary>
/// FIS类型
/// value为"单线" , "混线"
/// </summary>
public ArrayList FISType
{
get
{
return this.m_FISType;
}
}
#endregion
#region 构造
public AccountEnumSource()
{
#region
this.m_OrderNoModeListSrc.Add(new DictionaryEntry(AccountEnum.OrderNoMode.Inner.GetHashCode().ToString(), "内部分配"));
this.m_OrderNoModeListSrc.Add(new DictionaryEntry(AccountEnum.OrderNoMode.Outer.GetHashCode().ToString(), "外部分配"));
this.m_SerialRuleTypeSrc.Add(new DictionaryEntry(AccountEnum.SerialRuleType.NULL.GetHashCode().ToString(), ""));
this.m_SerialRuleTypeSrc.Add(new DictionaryEntry(AccountEnum.SerialRuleType.Number.GetHashCode().ToString(), "数字流水号"));
this.m_SerialRuleTypeSrc.Add(new DictionaryEntry(AccountEnum.SerialRuleType.EnString.GetHashCode().ToString(), "固定英文字符"));
this.m_SerialRuleTypeSrc.Add(new DictionaryEntry(AccountEnum.SerialRuleType.NumString.GetHashCode().ToString(), "固定数字字符"));
this.m_ManagerList.Add(new DictionaryEntry(EnumStatus.IsManager.No.GetHashCode().ToString(), "否"));
this.m_ManagerList.Add(new DictionaryEntry(EnumStatus.IsManager.Yes.GetHashCode().ToString(), "是"));
this.m_SexList.Add(new DictionaryEntry(EnumStatus.StaffSex.Male.GetHashCode().ToString(), "男"));
this.m_SexList.Add(new DictionaryEntry(EnumStatus.StaffSex.Female.GetHashCode().ToString(), "女"));
this.m_Controlled.Add(new DictionaryEntry(EnumStatus.IsControlled.Yes.GetHashCode().ToString(), "受限用户"));
this.m_Controlled.Add(new DictionaryEntry(EnumStatus.IsManager.No.GetHashCode().ToString(), "非受限用户"));
this.m_PurviewType.Add(new DictionaryEntry(EnumStatus.PurviewType.Show.GetHashCode().ToString(), "浏览页"));
this.m_PurviewType.Add(new DictionaryEntry(EnumStatus.PurviewType.Insert.GetHashCode().ToString(), "增加页"));
this.m_PurviewType.Add(new DictionaryEntry(EnumStatus.PurviewType.Verify.GetHashCode().ToString(), "审核页"));
this.m_FormDataModeList.Add(new DictionaryEntry(string.Empty, string.Empty));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Show.GetHashCode().ToString(), "浏览"));
this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Insert.GetHashCode().ToString(), "增加"));
this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Update.GetHashCode().ToString(), "修改"));
this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Delete.GetHashCode().ToString(), "删除"));
this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Verify.GetHashCode().ToString(), "处理"));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Login.GetHashCode().ToString(), "登录"));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Print.GetHashCode().ToString(), "打印"));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Report.GetHashCode().ToString(), "报表"));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Search.GetHashCode().ToString(), "检索"));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Verify.GetHashCode().ToString(), "审核"));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Exp.GetHashCode().ToString(), "导出"));
//this.m_FormDataModeList.Add(new DictionaryEntry(EnumStatus.FormDataMode.Imp.GetHashCode().ToString(), "导入"));
this.m_PageSize.Add(new DictionaryEntry(AccountEnum.PageSize.TEN.GetHashCode().ToString(), "10"));
this.m_PageSize.Add(new DictionaryEntry(AccountEnum.PageSize.TWENTY.GetHashCode().ToString(), "20"));
this.m_PageSize.Add(new DictionaryEntry(AccountEnum.PageSize.TWENTYFOUR.GetHashCode().ToString(), "24"));
this.m_PageSize.Add(new DictionaryEntry(AccountEnum.PageSize.FIFTY.GetHashCode().ToString(), "50"));
this.m_PageSize.Add(new DictionaryEntry(AccountEnum.PageSize.HUNDRED.GetHashCode().ToString(), "100"));
this.m_PageSize.Add(new DictionaryEntry(AccountEnum.PageSize.FIVEHUNDRED.GetHashCode().ToString(), "500"));
this.m_PageSize.Add(new DictionaryEntry(AccountEnum.PageSize.ALLSHOW.GetHashCode().ToString(), "全部显示"));
this.m_UserType.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_UserType.Add(new DictionaryEntry(AccountEnum.UserType.SUPER.GetHashCode().ToString(), "超级用户"));
this.m_UserType.Add(new DictionaryEntry(AccountEnum.UserType.GUEST.GetHashCode().ToString(), "Guest用户"));
this.m_UserType.Add(new DictionaryEntry(AccountEnum.UserType.INTER.GetHashCode().ToString(), "内部用户"));
this.m_UserType.Add(new DictionaryEntry(AccountEnum.UserType.IN.GetHashCode().ToString(), "内库车载操作员"));
this.m_UserType.Add(new DictionaryEntry(AccountEnum.UserType.OUT.GetHashCode().ToString(), "外库车载操作员"));
this.m_UserType.Add(new DictionaryEntry(AccountEnum.UserType.HAND.GetHashCode().ToString(), "手持操作员"));
this.m_OperateState.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_OperateState.Add(new DictionaryEntry(AccountEnum.OperateState.AUTO.GetHashCode().ToString(), "自动处理"));
this.m_OperateState.Add(new DictionaryEntry(AccountEnum.OperateState.HAND.GetHashCode().ToString(), "手动处理"));
this.m_ExceptionPlace.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_ExceptionPlace.Add(new DictionaryEntry(AccountEnum.ExceptionPlace.HIGH.GetHashCode().ToString(), "车载终端"));
this.m_ExceptionPlace.Add(new DictionaryEntry(AccountEnum.ExceptionPlace.FLOW.GetHashCode().ToString(), "手持终端"));
this.m_GLTExceptionPlace.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_GLTExceptionPlace.Add(new DictionaryEntry(AccountEnum.GLTExceptionPlace.TALLY.GetHashCode().ToString(), "超市区"));
this.m_GLTExceptionPlace.Add(new DictionaryEntry(AccountEnum.GLTExceptionPlace.STOCK.GetHashCode().ToString(), "备货区"));
this.m_GLTExceptionPlace.Add(new DictionaryEntry(AccountEnum.GLTExceptionPlace.OUT.GetHashCode().ToString(), "外库"));
this.m_GLTExceptionPlace.Add(new DictionaryEntry(AccountEnum.GLTExceptionPlace.WORK.GetHashCode().ToString(), "生产线"));
//this.m_GLTExceptionPlace.Add(new DictionaryEntry(AccountEnum.GLTExceptionPlace.FINISH.GetHashCode().ToString(), "成品库汇报"));
//this.m_GLTExceptionPlace.Add(new DictionaryEntry(AccountEnum.GLTExceptionPlace.FIS.GetHashCode().ToString(), "FIS汇报"));
this.m_SolutionFlag.Add(new DictionaryEntry(AccountEnum.SolutionFlag.ALL.GetHashCode().ToString(), "全部"));
this.m_SolutionFlag.Add(new DictionaryEntry(AccountEnum.SolutionFlag.NO.GetHashCode().ToString(), "未处理"));
this.m_SolutionFlag.Add(new DictionaryEntry(AccountEnum.SolutionFlag.YES.GetHashCode().ToString(), "已处理"));
this.m_ExceptionType.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_ExceptionType.Add(new DictionaryEntry(AccountEnum.ExceptionType.EXCEPTION.GetHashCode().ToString(), "差异"));
this.m_ExceptionType.Add(new DictionaryEntry(AccountEnum.ExceptionType.HUTIME.GetHashCode().ToString(), "HU时间"));
this.m_ExceptionType.Add(new DictionaryEntry(AccountEnum.ExceptionType.REPORT.GetHashCode().ToString(), "汇报"));
this.m_ExceptionType.Add(new DictionaryEntry(AccountEnum.ExceptionType.SAP.GetHashCode().ToString(), "SAP差异"));
this.m_TimeType.Add(new DictionaryEntry(AccountEnum.TimeType.SEC.GetHashCode().ToString(), "秒"));
this.m_TimeType.Add(new DictionaryEntry(AccountEnum.TimeType.MIN.GetHashCode().ToString(), "分"));
this.m_FlowRequsetType.Add(new DictionaryEntry(AccountEnum.RequestMatStatusFlow.NEW.GetHashCode().ToString(), "新建"));
this.m_FlowRequsetType.Add(new DictionaryEntry(AccountEnum.RequestMatStatusFlow.BLCOMPLAY.GetHashCode().ToString(), "备货完成"));
this.m_FlowRequsetType.Add(new DictionaryEntry(AccountEnum.RequestMatStatusFlow.STOCK.GetHashCode().ToString(), "填充完成"));
this.m_FlowRequsetType.Add(new DictionaryEntry(AccountEnum.RequestMatStatusFlow.MONEYCOMPLAY.GetHashCode().ToString(), "送货完成"));
this.m_ElevateRequsetType.Add(new DictionaryEntry(AccountEnum.RequestMatStatusFlow.NEW.GetHashCode().ToString(), "新建"));
this.m_ElevateRequsetType.Add(new DictionaryEntry(AccountEnum.RequestMatStatusFlow.BLCOMPLAY.GetHashCode().ToString(), "确认"));
this.m_ElevateRequsetType.Add(new DictionaryEntry(AccountEnum.RequestMatStatusFlow.MONEYCOMPLAY.GetHashCode().ToString(), "完成"));
this.m_WorkRequestType.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.NEW.GetHashCode().ToString(), "新建"));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.LOCK.GetHashCode().ToString(), "锁定"));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.BLCOMPLAY.GetHashCode().ToString(), "备料完成"));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.PARTSEND.GetHashCode().ToString(), "转库完成"));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.COMPLAY.GetHashCode().ToString(), "捡料完成"));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.INVALID.GetHashCode().ToString(), "作废"));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.SENDCOMPLAY.GetHashCode().ToString(), "送料完成"));
this.m_WorkRequestType.Add(new DictionaryEntry(AccountEnum.RequestMatStatus.MONEYCOMPLAY.GetHashCode().ToString(), "过账完成"));
//this.m_DelFlag.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_DelFlag.Add(new DictionaryEntry("0", "未停用"));
this.m_DelFlag.Add(new DictionaryEntry("1", "已停用"));
this.m_DelFlag.Add(new DictionaryEntry("2", "全部"));
this.m_ShowHour.Add(new DictionaryEntry(string.Empty, string.Empty));
this.m_ShowHour.Add(new DictionaryEntry(0, "0"));
this.m_ShowHour.Add(new DictionaryEntry(1, "1"));
this.m_ShowHour.Add(new DictionaryEntry(2, "2"));
this.m_ShowHour.Add(new DictionaryEntry(3, "3"));
this.m_ShowHour.Add(new DictionaryEntry(4, "4"));
this.m_ShowHour.Add(new DictionaryEntry(5, "5"));
this.m_ShowHour.Add(new DictionaryEntry(6, "6"));
this.m_ShowHour.Add(new DictionaryEntry(7, "7"));
this.m_ShowHour.Add(new DictionaryEntry(8, "8"));
this.m_ShowHour.Add(new DictionaryEntry(9, "9"));
this.m_ShowHour.Add(new DictionaryEntry(10, "10"));
this.m_ShowHour.Add(new DictionaryEntry(11, "11"));
this.m_ShowHour.Add(new DictionaryEntry(12, "12"));
this.m_ShowHour.Add(new DictionaryEntry(13, "13"));
this.m_ShowHour.Add(new DictionaryEntry(14, "14"));
this.m_ShowHour.Add(new DictionaryEntry(15, "15"));
this.m_ShowHour.Add(new DictionaryEntry(16, "16"));
this.m_ShowHour.Add(new DictionaryEntry(17, "17"));
this.m_ShowHour.Add(new DictionaryEntry(18, "18"));
this.m_ShowHour.Add(new DictionaryEntry(19, "19"));
this.m_ShowHour.Add(new DictionaryEntry(20, "20"));
this.m_ShowHour.Add(new DictionaryEntry(21, "21"));
this.m_ShowHour.Add(new DictionaryEntry(22, "22"));
this.m_ShowHour.Add(new DictionaryEntry(23, "23"));
this.m_SendingType.Add(new DictionaryEntry(AccountEnum.SendingType.TRUCK.GetHashCode().ToString(), "工艺车上线"));
this.m_SendingType.Add(new DictionaryEntry(AccountEnum.SendingType.TRAY.GetHashCode().ToString(), "托盘上线"));
this.m_StorageArea.Add(new DictionaryEntry(AccountEnum.StorageArea.FLOW.GetHashCode().ToString(), "超市区"));
this.m_StorageArea.Add(new DictionaryEntry(AccountEnum.StorageArea.HIGH.GetHashCode().ToString(), "高架区"));
this.m_StorageArea.Add(new DictionaryEntry(AccountEnum.StorageArea.OUT.GetHashCode().ToString(), "GLT外库"));
this.m_StorageArea.Add(new DictionaryEntry(AccountEnum.StorageArea.REQUEST.GetHashCode().ToString(), "备货区"));
this.m_StorageArea.Add(new DictionaryEntry(AccountEnum.StorageArea.FINISH.GetHashCode().ToString(), "成品库"));
this.m_MatType.Add(new DictionaryEntry(string.Empty, ""));
this.m_MatType.Add(new DictionaryEntry(AccountEnum.MatType.OUT.GetHashCode().ToString(), "外购件"));
this.m_MatType.Add(new DictionaryEntry(AccountEnum.MatType.OWNER.GetHashCode().ToString(), "自制半成品"));
this.m_MatType.Add(new DictionaryEntry(AccountEnum.MatType.FINISH.GetHashCode().ToString(), "产成品"));
this.m_FlagBatch.Add(new DictionaryEntry(string.Empty, ""));
this.m_FlagBatch.Add(new DictionaryEntry(AccountEnum.FlagBatch.NO.GetHashCode().ToString(), "非批量件"));
this.m_FlagBatch.Add(new DictionaryEntry(AccountEnum.FlagBatch.YES.GetHashCode().ToString(), "批量件"));
this.m_WorkType.Add(new DictionaryEntry(string.Empty, ""));
this.m_WorkType.Add(new DictionaryEntry(AccountEnum.WorkType.PULL.GetHashCode().ToString(), "拉动式"));
this.m_WorkType.Add(new DictionaryEntry(AccountEnum.WorkType.BATCH.GetHashCode().ToString(), "批量汇报"));
this.m_AutoteQuest.Add(new DictionaryEntry(string.Empty, ""));
this.m_AutoteQuest.Add(new DictionaryEntry(AccountEnum.AutoteQuest.NO.GetHashCode().ToString(), "不自动要货"));
this.m_AutoteQuest.Add(new DictionaryEntry(AccountEnum.AutoteQuest.YES.GetHashCode().ToString(), "自动要货"));
this.m_DefaultFlag.Add(new DictionaryEntry(string.Empty, ""));
this.m_DefaultFlag.Add(new DictionaryEntry(AccountEnum.DefaultFlag.YES.GetHashCode().ToString(), "选择"));
this.m_DefaultFlag.Add(new DictionaryEntry(AccountEnum.DefaultFlag.NO.GetHashCode().ToString(), "不选"));
this.m_TransType.Add(new DictionaryEntry(string.Empty, ""));
this.m_TransType.Add(new DictionaryEntry(AccountEnum.TransType.LINE.GetHashCode().ToString(), "生产线"));
this.m_TransType.Add(new DictionaryEntry(AccountEnum.TransType.VENDOR.GetHashCode().ToString(), "客户"));
this.m_FormType.Add(new DictionaryEntry(string.Empty, ""));
this.m_FormType.Add(new DictionaryEntry(AccountEnum.FormType.NO.GetHashCode().ToString(), "非备件"));
this.m_FormType.Add(new DictionaryEntry(AccountEnum.FormType.YES.GetHashCode().ToString(), "备件"));
this.m_OrderStatus.Add(new DictionaryEntry(string.Empty, ""));
this.m_OrderStatus.Add(new DictionaryEntry(AccountEnum.OrderStatus.NO.GetHashCode().ToString(), "未提醒"));
this.m_OrderStatus.Add(new DictionaryEntry(AccountEnum.OrderStatus.YES.GetHashCode().ToString(), "以提醒"));
this.m_OrderFlag.Add(new DictionaryEntry(string.Empty, ""));
this.m_OrderFlag.Add(new DictionaryEntry(AccountEnum.OrderFlag.NO.GetHashCode().ToString(), "不排序"));
this.m_OrderFlag.Add(new DictionaryEntry(AccountEnum.OrderFlag.YES.GetHashCode().ToString(), "排序"));
this.m_FISMatType.Add(new DictionaryEntry(string.Empty, ""));
this.m_FISMatType.Add(new DictionaryEntry(AccountEnum.FISMatType.FINISH.GetHashCode().ToString(), "产成品"));
this.m_FISMatType.Add(new DictionaryEntry(AccountEnum.FISMatType.ALL.GetHashCode().ToString(), "总成"));
this.m_MaterialFlag.Add(new DictionaryEntry(string.Empty, ""));
this.m_MaterialFlag.Add(new DictionaryEntry(AccountEnum.MaterialFlag.FIS.GetHashCode().ToString(), "FIS零件"));
this.m_MaterialFlag.Add(new DictionaryEntry(AccountEnum.MaterialFlag.PT.GetHashCode().ToString(), "平台零件"));
this.m_FlagComplete.Add(new DictionaryEntry(string.Empty, ""));
this.m_FlagComplete.Add(new DictionaryEntry(AccountEnum.FlagComplete.NO.GetHashCode().ToString(), "未完成"));
this.m_FlagComplete.Add(new DictionaryEntry(AccountEnum.FlagComplete.YES.GetHashCode().ToString(), "完成"));
this.m_RequestStationType.Add(new DictionaryEntry(string.Empty, ""));
this.m_RequestStationType.Add(new DictionaryEntry(AccountEnum.RequestStationType.PRODUCELINE.GetHashCode().ToString(), "生产线"));
this.m_RequestStationType.Add(new DictionaryEntry(AccountEnum.RequestStationType.WORKSTATION.GetHashCode().ToString(), "工位"));
this.m_Print.Add(new DictionaryEntry(AccountEnum.Print.ONE.GetHashCode().ToString(), "1号打印机"));
this.m_Print.Add(new DictionaryEntry(AccountEnum.Print.TWO.GetHashCode().ToString(), "2号打印机"));
this.m_Print1.Add(new DictionaryEntry(AccountEnum.Print.THREE.GetHashCode().ToString(), "3号打印机"));
this.m_Print1.Add(new DictionaryEntry(AccountEnum.Print.FOUR.GetHashCode().ToString(), "4号打印机"));
this.m_Finish.Add(new DictionaryEntry(string.Empty, ""));
this.m_Finish.Add(new DictionaryEntry("SJIT", "SJIT"));
this.m_CreateType.Add(new DictionaryEntry(string.Empty, ""));
this.m_CreateType.Add(new DictionaryEntry(AccountEnum.CreateType.AUTO.GetHashCode().ToString(), "自动创建"));
this.m_CreateType.Add(new DictionaryEntry(AccountEnum.CreateType.HAND.GetHashCode().ToString(), "手动创建"));
this.m_Deliverd.Add(new DictionaryEntry(string.Empty, "全部"));
this.m_Deliverd.Add(new DictionaryEntry(AccountEnum.FlagComplete.NO.GetHashCode().ToString(), "新建"));
this.m_Deliverd.Add(new DictionaryEntry(AccountEnum.FlagComplete.YES.GetHashCode().ToString(), "完成"));
this.m_Report.Add(new DictionaryEntry(string.Empty, ""));
this.m_Report.Add(new DictionaryEntry(AccountEnum.Report.NO.GetHashCode().ToString(), "未汇报"));
this.m_Report.Add(new DictionaryEntry(AccountEnum.Report.YES.GetHashCode().ToString(), "汇报"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.ALL.GetHashCode().ToString(), string.Empty));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.NEW.GetHashCode().ToString(), "新建"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.REPORT.GetHashCode().ToString(), "部分汇报"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.REPORTFINISH.GetHashCode().ToString(), "汇报完毕"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.TRANS.GetHashCode().ToString(), "部分转移"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.TRANSFINISH.GetHashCode().ToString(), "已转移"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.INVALID.GetHashCode().ToString(), "作废"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.WAIT.GetHashCode().ToString(), "待交付"));
this.m_ReportStatus.Add(new DictionaryEntry(AccountEnum.ReportStatus.OVER.GetHashCode().ToString(), "已交付"));
this.m_StorageAreaQuery.Add(new DictionaryEntry(string.Empty, ""));
this.m_StorageAreaQuery.Add(new DictionaryEntry(AccountEnum.StorageArea.FLOW.GetHashCode().ToString(), "超市区"));
this.m_StorageAreaQuery.Add(new DictionaryEntry(AccountEnum.StorageArea.OUT.GetHashCode().ToString(), "GLT外库"));
this.m_StorageAreaQuery.Add(new DictionaryEntry(AccountEnum.StorageArea.REQUEST.GetHashCode().ToString(), "备货区"));
this.m_Plant.Add(new DictionaryEntry(AccountEnum.Plant.ONE.GetHashCode().ToString(), "一厂"));
this.m_Plant.Add(new DictionaryEntry(AccountEnum.Plant.TWO.GetHashCode().ToString(), "二厂"));
this.m_StorageSite.Add(new DictionaryEntry(string.Empty, ""));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.ORDERONLINE.GetHashCode().ToString(), "排序上线区"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.MAINBACKSPLIT.GetHashCode().ToString(), "主座椅靠背分装线"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.SIDEBACKSPLIT.GetHashCode().ToString(), "副座椅靠背分装线"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.MAINCUSHIONSPLIT.GetHashCode().ToString(), "主座椅坐垫分装线"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.SIDECUSHIONSPLIT.GetHashCode().ToString(), "副座椅坐垫分装线"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.BEFOREASSEMBLY.GetHashCode().ToString(), "前座椅总装线"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.AFTERBACKASSEMBLY.GetHashCode().ToString(), "后座椅靠背组装线"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.AFTERCUSHIONASSEMBLY.GetHashCode().ToString(), "后座椅坐垫组装线"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.StorePlace.CONSIGN.GetHashCode().ToString(), "发货区"));
this.m_StorageSite.Add(new DictionaryEntry(string.Empty, ""));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.PartType.BASICPART.GetHashCode().ToString(), "基础零件"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.PartType.HALFPART.GetHashCode().ToString(), "半成品"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.PartType.FINISHEDPART.GetHashCode().ToString(), "产成品"));
this.m_StorageSite.Add(new DictionaryEntry(string.Empty, ""));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.KeyPartFlg.NO.GetHashCode().ToString(), "非关键件"));
this.m_StorageSite.Add(new DictionaryEntry(AccountEnum.KeyPartFlg.YES.GetHashCode().ToString(), "关键件"));
this.m_ReturnType.Add(new DictionaryEntry(string.Empty, ""));
this.m_ReturnType.Add(new DictionaryEntry("DMR", "DMR"));
this.m_ReturnType.Add(new DictionaryEntry("SMR", "SMR"));
this.m_MFGWorkType.Add(new DictionaryEntry(string.Empty, "全部"));
this.m_MFGWorkType.Add(new DictionaryEntry("R", "采购收货"));
this.m_MFGWorkType.Add(new DictionaryEntry("M", "库存转移"));
this.m_MFGWorkType.Add(new DictionaryEntry("T", "采购退货"));
this.m_MFGWorkType.Add(new DictionaryEntry("F", "回冲"));
this.m_MFGWorkType.Add(new DictionaryEntry("U", "计划外出库"));
this.m_MFGWorkType.Add(new DictionaryEntry("N", "计划外入库"));
this.m_SolveFlag.Add(new DictionaryEntry("0", "未解决"));
this.m_SolveFlag.Add(new DictionaryEntry("1", "已解决"));
this.m_SolveFlag.Add(new DictionaryEntry("2", "特殊处理"));
this.m_Line.Add(new DictionaryEntry("1", "NCS"));
this.m_Line.Add(new DictionaryEntry("2", "NF"));
this.m_FISType.Add(new DictionaryEntry("1", "混线"));
this.m_FISType.Add(new DictionaryEntry("2", "单线"));
#endregion
}
#endregion
#region WinForm方法
/// <summary>
/// 绑定"订单序列号分配方式"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindOrderSerialModeListSrc(ComboBox pCB)
{
#region
pCB.DataSource = OrderSerialModeListSrc;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"订单号分配方式"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindOrderNoModeListSrc(ComboBox pCB)
{
#region
pCB.DataSource = OrderNoModeListSrc;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"序列号规则位段类型"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindSerialRuleTypeSrc(ComboBox pCB)
{
#region
pCB.DataSource = SerialRuleTypeSrc;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"汇报点"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindExceptionPlaceSrc(ComboBox pCB)
{
#region
pCB.DataSource = ExceptionPlace;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"GLT汇报点"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindGLTExceptionPlaceSrc(ComboBox pCB)
{
#region
pCB.DataSource = GLTExceptionPlace;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"解决标识"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindSolutionFlagSrc(ComboBox pCB)
{
#region
pCB.DataSource = SolutionFlag;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"差异类型"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindExceptionTypeSrc(ComboBox pCB)
{
#region
pCB.DataSource = ExceptionType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"上线方式"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindSendingType(ComboBox pCB)
{
#region
pCB.DataSource = SendingType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"存储区标识"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindStorageArea(ComboBox pCB)
{
#region
pCB.DataSource = StorageArea;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"物料种类"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindMatType(ComboBox pCB)
{
#region
pCB.DataSource = MatType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"批量件标识"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindFlagBatch(ComboBox pCB)
{
#region
pCB.DataSource = FlagBatch;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"操作类别"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindWorkTypeItem(ComboBox pCB)
{
#region
pCB.DataSource = WorkType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"缺省选择标识"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindDefaultFlagArea(ComboBox pCB)
{
#region
pCB.DataSource = DefaultFlag;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"状态提醒"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindOrderStatusArea(ComboBox pCB)
{
#region
pCB.DataSource = OrderStatus;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"转移目的地类别"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindTransType(ComboBox pCB)
{
#region
pCB.DataSource = TransType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"备件标示"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindFormType(ComboBox pCB)
{
#region
pCB.DataSource = FormType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"操作类别"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindOrderFlag(ComboBox pCB)
{
#region
pCB.DataSource = OrderFlag;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"FIS物料种类"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindFISMatType(ComboBox pCB)
{
#region
pCB.DataSource = FISMatType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"物料标识"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindMaterialFlag(ComboBox pCB)
{
#region
pCB.DataSource = MaterialFlag;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"完成标识"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindFlagComplete(ComboBox pCB)
{
#region
pCB.DataSource = FlagComplete;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"送料位置类别"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindRequestStationType(ComboBox pCB)
{
#region
pCB.DataSource = RequestStationType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"FIS类型"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindFISType(ComboBox pCB)
{
#region
pCB.DataSource = FISType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
#endregion
#region BaseComponents WinForm方法
/// <summary>
/// 绑定ComboBox控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
/// <param name="pArrayList">ArrayList</param>
public void BindList(ComboBox pCB, ArrayList pArrayList)
{
#region
pCB.DataSource = pArrayList;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"是否为部门负责人"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindManagerList(ComboBox pCB)
{
#region
pCB.DataSource = IsManagerList;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"性别"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindSexList(ComboBox pCB)
{
#region
pCB.DataSource = SexList;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"是否受限"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindControlledList(ComboBox pCB)
{
#region
pCB.DataSource = IsControlledList;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"权限"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindPurviewTypeList(ComboBox pCB)
{
#region
pCB.DataSource = PurviewTypeList;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定"操作"控件数据源
/// </summary>
/// <param name="pCB">ComboBox</param>
public void BindFormDataModeList(ComboBox pCB)
{
#region
pCB.DataSource = FormDataModeList;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 分页页数
/// </summary>
/// <param name="pCB"></param>
public void BindPageSize(ToolStripComboBox pCB)
{
#region
pCB.ComboBox.DataSource = PageSize;
pCB.ComboBox.ValueMember = "Key";
pCB.ComboBox.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定用户类型
/// </summary>
/// <param name="pCB"></param>
public void BindUserType(ComboBox pCB)
{
#region
pCB.DataSource = UserType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 物料处理状态
/// </summary>
/// <param name="pCB"></param>
public void BindOperateState(ComboBox pCB)
{
#region
pCB.DataSource = OperateState;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定时间类型
/// </summary>
/// <param name="pCB"></param>
public void BindTimeType(ComboBox pCB)
{
#region
pCB.DataSource = TimeType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 超市区要料状态
/// </summary>
public void BindFlowType(ComboBox pCB)
{
#region
pCB.DataSource = FlowRequsetType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 库房要料状态
/// </summary>
public void BindElevateType(ComboBox pCB)
{
#region
pCB.DataSource = ElevateRequsetType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 物料状态
/// </summary>
public void BindDelFlag(ComboBox pCB)
{
#region
pCB.DataSource = DelFlag;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 生产线要料状态
/// </summary>
/// <param name="pCB"></param>
public void BindWorkType(ComboBox pCB)
{
#region
pCB.DataSource = WorkRequestType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 绑定小时
/// </summary>
/// <param name="pCB"></param>
public void BindHour(ComboBox pCB)
{
#region
pCB.DataSource = ShowHour;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 自动要货标示
/// </summary>
/// <param name="pCB"></param>
public void BindAutoteQuest(ComboBox pCB)
{
#region
pCB.DataSource = AutoteQuest;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 打印机1,2
/// </summary>
/// <param name="pCB"></param>
public void BindPrint(ComboBox pCB)
{
#region
pCB.DataSource = Print;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 打印机3,4
/// </summary>
/// <param name="pCB"></param>
public void BindPrint1(ComboBox pCB)
{
#region
pCB.DataSource = Print1;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 成品库
/// </summary>
/// <param name="pCB"></param>
public void BindFinish(ComboBox pCB)
{
#region
pCB.DataSource = Finish;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 创建类别
/// </summary>
/// <param name="pCB"></param>
public void BindCreateType(ComboBox pCB)
{
#region
pCB.DataSource = CreateType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 完成标示(外向交付)
/// </summary>
/// <param name="pCB"></param>
public void BindDeliverd(ComboBox pCB)
{
#region
pCB.DataSource = Deliverd;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 汇报标示
/// </summary>
/// <param name="pCB"></param>
public void BindReport(ComboBox pCB)
{
#region
pCB.DataSource = Report;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 看板状态
/// </summary>
/// <param name="pCB"></param>
public void BindReportStatus(ComboBox pCB)
{
#region
pCB.DataSource = ReportStatus;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 物料所在
/// </summary>
/// <param name="pCB"></param>
public void BindStorageAreaQuery(ComboBox pCB)
{
#region
pCB.DataSource = StorageAreaQuery;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 工厂
/// </summary>
/// <param name="pCB"></param>
public void BindPlant(ComboBox pCB)
{
#region
pCB.DataSource = Plant;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 存储地点(生产线)
/// </summary>
/// <param name="pCB"></param>
public void BindStorageSite(ComboBox pCB)
{
#region
pCB.DataSource = StorageSite;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 零件类别
/// </summary>
/// <param name="pCB"></param>
public void BindPartType(ComboBox pCB)
{
#region
pCB.DataSource = PartType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
public void BindKeyPartFlg(ComboBox pCB)
{
#region
pCB.DataSource = KeyPartFlg;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 退货单类型
/// </summary>
/// <param name="pCB"></param>
public void BindReturnType(ComboBox pCB)
{
#region
pCB.DataSource = ReturnType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// MFG作业类型
/// </summary>
/// <param name="pCB"></param>
public void BindMFGWorkType(ComboBox pCB)
{
#region
pCB.DataSource = MFGWorkType;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 解决标记
/// </summary>
/// <param name="pCB"></param>
public void BindSolveFlag(ComboBox pCB)
{
#region
pCB.DataSource = SolveFlag;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
/// <summary>
/// 生产线选择
/// </summary>
public void BindLine(ComboBox pCB)
{
#region
pCB.DataSource = Line;
pCB.ValueMember = "Key";
pCB.DisplayMember = "Value";
#endregion
}
#endregion
#region 返回枚举
public EnumStatus.UserKind GetUserKind(int pEnumInt)
{
EnumStatus.UserKind userKind = new EnumStatus.UserKind();
switch (pEnumInt)
{
case 0:
userKind = EnumStatus.UserKind.Admin;
break;
case 1:
userKind = EnumStatus.UserKind.Guest;
break;
case 2:
userKind = EnumStatus.UserKind.User;
break;
default:
break;
}
return userKind;
}
#endregion
}
}