예제 #1
0
        public DeliverySaveResponse InsertDeliveryDetails(JObject input)
        {
            DeliverySaveResponse objresponse = new DeliverySaveResponse();

            try
            {
                objresponse = objBookingBal.InsertDeliveryDetails(input);
            }
            catch (Exception ex)
            {
                objresponse.StatusId      = 0;
                objresponse.StatusMessage = ex.Message;
            }
            return(objresponse);
        }
예제 #2
0
        public DeliverySaveResponse InsertDeliveryDetails(JObject input)
        {
            DeliverySaveResponse objresponse = new DeliverySaveResponse();

            try
            {
                DeliveryRequest objrequest = new DeliveryRequest();

                objrequest.CounterId           = Convert.ToInt32(CommonMethods.URLKeyDecrypt(Convert.ToString(input["CounterId"])));
                objrequest.UserLoginId         = Convert.ToInt32(CommonMethods.URLKeyDecrypt(Convert.ToString(input["UserLoginId"])));
                objrequest.BookingId           = Convert.ToInt32(input["BookingId"]);
                objrequest.GCBookingNumber     = Convert.ToString(input["GCBookingNumber"]);
                objrequest.GCType              = Convert.ToInt32(input["GCType"]);
                objrequest.ProductType         = Convert.ToInt32(input["ProductType"]);
                objrequest.Remarks             = Convert.ToString(input["Remarks"]);
                objrequest.DeliveryCharges     = Convert.ToDecimal(input["DeliveryCharges"]);
                objrequest.DemoCharges         = Convert.ToDecimal(input["DemoCharges"]);
                objrequest.ReceivingId         = Convert.ToInt32(input["ReceivingId"]);
                objrequest.DeliveryPhoneNumber = Convert.ToString(input["DeliveryPhoneNumber"]);
                objrequest.DeliveryTo          = Convert.ToString(input["DeliveryTo"]);
                objrequest.BillAmount          = Convert.ToDecimal(input["BillAmount"]);

                objresponse = objBookingDal.InsertDeliveryDetails(objrequest);

                if (objresponse.StatusId == 1)
                {
                    CommonMethods.SendSMS(objrequest.DeliveryPhoneNumber, "Your LR Number: " + objrequest.GCBookingNumber + " is delivered successfully to " + objrequest.DeliveryTo + ", Mobile No: " + objrequest.DeliveryPhoneNumber + "");
                }
            }
            catch (Exception ex)
            {
                objresponse.StatusId      = 0;
                objresponse.StatusMessage = ex.Message;
            }
            return(objresponse);
        }