Esempio n. 1
0
 public static string[] GetTransaction(string transactionTypeCode, string taskName, string step)
 {
     string[] strTrackingNo;
     try
     {
         ECXWF.ECXEngine eng = new WarehouseApplication.ECXWF.ECXEngine();
         strTrackingNo = eng.GetTransactionsByTaskName(transactionTypeCode, taskName, step);
         return(strTrackingNo);
     }
     catch
     {
         throw new Exception("Unable to get transactions.");
     }
 }
Esempio n. 2
0
        public static string[] GetOpentransaction(string transactionTypeCode, string taskName, string step)
        {
            string[]      transaction;
            List <string> lstTran = null;

            ECXWF.ECXEngine eng = new WarehouseApplication.ECXWF.ECXEngine();
            transaction = eng.GetTransactionsByTaskName(transactionTypeCode, taskName, step);
            if (transaction.Count() > 0)
            {
                lstTran = new List <string>();
                lstTran = transaction.ToList <string>();
                if (lstTran != null)
                {
                    if (lstTran.Count > 0)
                    {
                        string str = "";
                        foreach (string s in lstTran)
                        {
                            str += "'" + s + "' , ";
                        }
                        int x = str.LastIndexOf(',');
                        str     = str.Remove(x);
                        lstTran = WarehouseTrackingNoDAL.GetWarehouseTracking(str, UserBLL.GetCurrentWarehouse());
                        if (lstTran != null)
                        {
                            if (lstTran.Count > 0)
                            {
                                return(lstTran.ToArray <string>());
                            }
                        }
                    }
                }
            }
            else
            {
                return(null);
            }

            //Check the transaction Numbers are in the current WH from DB.

            //Get the count of the new Transaction array after current WH from DB
            return(null);
        }