Exemple #1
0
        public List <SODetailsDB> GetSoListFromCust(RequestSODetailsFromCustAndSo data)
        {
            List <SODetailsDB> ResultSet = new List <SODetailsDB>();

            using (IDbConnection connection = GetOpenConnection())
            {
                try
                {
                    var param = new DynamicParameters();
                    param.Add("@UserType", data.UserType);
                    param.Add("@CustomerCode", data.CustomerCode);
                    param.Add("@LoadingPlanFrom", data.LoadingPlanFrom);
                    param.Add("@LoadingPlanTo", data.LoadingPlanTo);
                    ResultSet = connection.Query <SODetailsDB>("SP_GetSoListFromCust", param, commandType: CommandType.StoredProcedure).ToList();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                finally
                {
                    if (connection != null)
                    {
                        connection.Close();
                    }
                }
            }

            return(ResultSet);
        }
Exemple #2
0
 public ResponseInfo <ResponseSODetails> GetSoListFromCust([FromBody] RequestSODetailsFromCustAndSo data)
 {
     try
     {
         return(base.PostDataToAPINotAuth <ResponseInfo <ResponseSODetails> >(base.apiPathAndQuery, data));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #3
0
        public ResponseInfo <ResponseSODetails> GetSoListFromCust([FromBody] RequestSODetailsFromCustAndSo data)
        {
            ResponseInfo <ResponseSODetails> res = new ResponseInfo <ResponseSODetails>();

            try
            {
                res = process.GetSoListFromCust(data);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(res);
        }
Exemple #4
0
        public ResponseInfo <ResponseSODetails> GetSoListFromCust(RequestSODetailsFromCustAndSo data)
        {
            ResponseInfo <ResponseSODetails> response = new ResponseInfo <ResponseSODetails>();

            try
            {
                response.ResponseData = new ResponseSODetails();

                var listData = SODAL.GetSoListFromCust(data);

                response.ResponseData.sODetails = HelperUtil.GenerateSoDetailBase64String(listData);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(response);
        }