public ActionResult MyUrlCustomPostBack(string type, JArray gridFields, JObject typeParams, int gridIndex, int gridPageSize, string customerID)
        {
            var    Grid1     = UIHelper.Grid("Grid1");
            string sql       = string.Empty;
            var    ttbSearch = UIHelper.TwinTriggerBox("ttbSearchMessage");

            if (type == "trigger1")
            {
                ttbSearch.Text(String.Empty);
                ttbSearch.ShowTrigger1(false);
            }
            else if (type == "trigger2")
            {
                ttbSearch.ShowTrigger1(true);
                var triggerValue = typeParams.Value <string>("triggerValue");
                sql = " and Name like '%" + triggerValue + "%'";
            }
            sql = "and  pct.CustomerID=" + customerID;
            Hashtable table = Panda_CustomerDal.SearchUrl(gridIndex, gridPageSize, "FCreateDate", "DESC", sql);

            Grid1.DataSource(table["data"], gridFields);
            Grid1.RecordCount(Int32.Parse(table["total"].ToString()));
            Grid1.PageSize(gridPageSize);
            return(UIHelper.Result());
        }
        public ActionResult Customer_editUrl(int customerId)
        {
            ViewBag.CoreCustomerNew    = CheckPower("CoreCustomerNew");
            ViewBag.CoreCustomerDelete = CheckPower("CoreCustomerDelete");
            ViewBag.CoreCustomerEdit   = CheckPower("CoreCustomerEdit");
            string sql = string.Empty;

            sql = "and  pct.CustomerID=" + customerId;
            Hashtable table = Panda_CustomerDal.SearchUrl(0, 20, "FCreateDate", "DESC", sql);

            ViewBag.Grid1DataSource  = table["data"];
            ViewBag.Grid1RecordCount = Int32.Parse(table["total"].ToString());
            ViewBag.customerID       = customerId.ToString();
            return(View());
        }