コード例 #1
0
ファイル: Cls_OrderInfo.cs プロジェクト: radtek/EicMcp
        /// <summary>
        /// 获取指定车间的生产中的工单列表
        /// </summary>
        /// <param name="_Option"></param>
        /// <returns></returns>
        public List <Maticsoft.Model.WorkOrder> get_On_Stream_Order(WorkShopList _Option)
        {
            string _Workshop = "";

            if (_Option == WorkShopList.N_WorkShop)
            {
                _Workshop = "南车间";
            }
            else if (_Option == WorkShopList.B_WorkShop)
            {
                _Workshop = "北车间";
            }
            else if (_Option == WorkShopList.X_WorkShop)
            {
                _Workshop = "小车间";
            }
            Maticsoft.BLL.WorkOrder _M_WorkOrder = new Maticsoft.BLL.WorkOrder();
            return(_M_WorkOrder.GetModelList("(Workshop = '" + _Workshop + "') AND (State = '待生产')"));
        }
コード例 #2
0
ファイル: Cls_OrderInfo.cs プロジェクト: radtek/EicMcp
 /// <summary>
 /// 获取生产中的工单列表
 /// </summary>
 /// <returns></returns>
 public List <Maticsoft.Model.WorkOrder> get_On_Stream_Order()
 {
     Maticsoft.BLL.WorkOrder _M_WorkOrder = new Maticsoft.BLL.WorkOrder();
     return(_M_WorkOrder.GetModelList("State = '待生产'"));
 }