コード例 #1
0
        private static void UPDATE_WIPSTATION(string STOCK_NO)
        {
            DataTable dt = OperateDB.Get_Wip_Tracking("STORENUMBER", STOCK_NO, "DISTINCT WOID");

            foreach (DataRow dr in dt.Rows)
            {
                Dictionary <string, object> dic = new Dictionary <string, object>();
                dic.Add("WOID", dr["WOID"].ToString());
                dic.Add("STORENUMBER", STOCK_NO);
                dic.Add("WIPSTATION", OperateDB.GetWOLoc(dr["WOID"].ToString()));
                List <string> ListFields = new List <string>();
                ListFields = new List <string>();
                ListFields.Add("WOID");
                ListFields.Add("STORENUMBER");
                OperateDB.UPDATE_WIP_TRACKING(dic, ListFields);
            }
        }
コード例 #2
0
        /// 列印入库单据
        /// </summary>
        /// <param name="StockIn"></param>
        private void PrintInventoryDocuments(string StockIn)
        {
            bool PrintFlag = true;

            StockNo = StockIn;
            dtStock = OperateDB.GetStockInPrint(StockNo);
            foreach (DataRow dr in dtStock.Rows)
            {
                if (dr[2].ToString() != OperateDB.GetWOLoc(dr["WOID"].ToString()))
                {
                    SendMsg(mLogMsgType.Error, "数据未全部上抛完成,不列印单据");
                    PrintFlag = false;
                    break;
                }
            }
            if ((PrintFlag) && (dtStock.Rows.Count > 0))
            {
                PrintStockInNo.Print();
            }
            dtStock = null;
        }