Esempio n. 1
0
        public static string InsertWhRedeemQty(string saleId, string saleReturn20Qty, string whReturn20Qty, string saleReturn30Qty, string whReturn30Qty, string saleReturn60Qty, string whReturn60Qty, string totalLostReturnQty, string createBy)
        {
            string result = "";

            try
            {
                Utility       utility       = new Utility();
                bool          resultUps     = false;
                BLArWhReceive blArWhReceive = new BLArWhReceive();
                DataTable     dt            = new DataTable();

                dt.Columns.Add("result");
                dt.Rows.Add("false");

                resultUps = blArWhReceive.InsertWhRedeemQty(saleId, saleReturn20Qty, whReturn20Qty, saleReturn30Qty, whReturn30Qty, saleReturn60Qty, whReturn60Qty, totalLostReturnQty, createBy);
                if (resultUps)
                {
                    dt.Rows[0]["result"] = "true";
                }

                result = utility.DataTableToJSONWithJavaScriptSerializer(dt);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(result);
        }
Esempio n. 2
0
        public static string GetSaleRedeem(string search)
        {
            string result = "";

            try
            {
                BLArWhReceive blArWhReceive = new BLArWhReceive();
                DataSet       ds            = new DataSet();
                Utility       utility       = new Utility();

                ds     = blArWhReceive.GetSaleRedeem(search.Trim());
                result = utility.DataTableToJSONWithJavaScriptSerializer(ds.Tables[0]);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(result);
        }