private void LoadCustomsFeeTypes(DALTools dalTools)
        {
            if (job == null)
            {
                return;
            }

            List <eCustomsProcess_FeeType> allCustomsFeeTypes = dalTools.CustomsProcess_FeeType_GetEs();

            _AllCustomsFeeTypes = allCustomsFeeTypes == null ? string.Empty : JsonConvert.SerializeObject(allCustomsFeeTypes);

            List <eCustomsProcess_Quotation> allCustomerQuotation_Smiles = dalTools.CustomsProcess_Quotation_GetEs();

            _AllCustomerQuotation_Smiles = allCustomerQuotation_Smiles == null ? string.Empty : JsonConvert.SerializeObject(allCustomerQuotation_Smiles);
        }
        private void LoadList()
        {
            string sPageIndex = Request.Form["page"];
            int    pageIndex  = 0;

            try { pageIndex = int.Parse(sPageIndex); }
            catch { pageIndex = 0; }

            using (DALTools dalTools = new DALTools())
            {
                int totalPages = 0;
                List <eCustomsProcess_Quotation> all = dalTools.CustomsProcess_Quotation_GetEs(pageIndex, GlobalValues.DefaultPagingSize, out totalPages);

                if (all == null || all.Count == 0)
                {
                    DoResponse(JsonConvert.SerializeObject(new GlobalValues.ResponseData()
                    {
                        Data      = null,
                        ErrorCode = 1,
                        Message   = "Không có dữ liệu!",
                    }));
                }
                else
                {
                    DoResponse(JsonConvert.SerializeObject(new GlobalValues.ResponseData()
                    {
                        Data = new
                        {
                            PageIndex  = pageIndex,
                            PageSize   = GlobalValues.DefaultPagingSize,
                            TotalPages = totalPages,
                            List       = JsonConvert.SerializeObject(all)
                        },
                        ErrorCode = 0,
                        Message   = string.Empty,
                    }));
                }
            }
        }