예제 #1
0
        public LoadingSaveResponse InsertLoadingDetails(JObject input)
        {
            LoadingSaveResponse objresponse = new LoadingSaveResponse();

            try
            {
                LoadingRequest objrequest = new LoadingRequest();

                objrequest.BookingIds         = Convert.ToString(input["BookingIds"]);
                objrequest.CounterId          = Convert.ToInt32(CommonMethods.URLKeyDecrypt(Convert.ToString(input["CounterId"])));
                objrequest.DriverAmount       = Convert.ToDecimal(input["DriverAmount"]);
                objrequest.DriverMobileNumber = Convert.ToString(input["DriverMobileNumber"]);
                objrequest.DriverName         = Convert.ToString(input["DriverName"]);
                objrequest.LoadingDateTime    = Convert.ToString(input["LoadingDateTime"]);
                objrequest.EstimatedDateTime  = Convert.ToString(input["EstimatedDateTime"]);
                objrequest.HamaliAmount       = Convert.ToDecimal(input["HamaliAmount"]);
                objrequest.Remarks            = Convert.ToString(input["Remarks"]);
                objrequest.UserLoginId        = Convert.ToInt32(CommonMethods.URLKeyDecrypt(Convert.ToString(input["UserLoginId"])));
                objrequest.VehicleNumber      = Convert.ToString(input["VehicleNumber"]);
                objrequest.Route = Convert.ToString(input["Route"]);

                objresponse = objBookingDal.InsertLoadingDetails(objrequest);
            }
            catch (Exception ex)
            {
                objresponse.StatusId      = 0;
                objresponse.StatusMessage = ex.Message;
            }
            return(objresponse);
        }
예제 #2
0
        public LoadingSaveResponse InsertLoadingDetails(JObject input)
        {
            LoadingSaveResponse objresponse = new LoadingSaveResponse();

            try
            {
                objresponse = objBookingBal.InsertLoadingDetails(input);
            }
            catch (Exception ex)
            {
                objresponse.StatusId      = 0;
                objresponse.StatusMessage = ex.Message;
            }
            return(objresponse);
        }