Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string scriptServerConfig = CGrid.CreateGridConfig(0, 37, 1, "colModelTranferStock", "colNameTranferStock", "TranferStockOption");

            ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + "</script>";
            StartupScript        = CControlUI.GetControlsScript("Inventory/AdjustStock");
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            CSession session            = new CSession();
            string   scriptServerConfig = CGrid.CreateGridConfig(session.UserID, 43, 1, "colModelActiveIngredient", "colNameActiveIngredient", "optionServerActiveIngredient");

            ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + "</script>";
        }
Example #3
0
        private void CreateGrid()
        {
            string scriptServerConfig = CGrid.CreateGridConfig(0, 5, 1, "colModelTax", "colNameTax", "optionServerTax");

            //Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "ServerConfigStockGrid", scriptServerConfig, true);
            ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + "</script>";
        }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string scriptServerConfig = CGrid.CreateGridConfig(0, 41, 1, "colModelAssetEntry", "colNameAssetEntry", "optionServerAssetEntry");

            ltrScriptClientEntry.Text = "<script type='text/javascript'>" + scriptServerConfig + "</script>";
            StartupScript             = CControlUI.GetControlsScript("Items/Customer");
        }
Example #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string scriptServerConfig = CGrid.CreateGridConfig(0, 76, 1, "colModelCollateral", "colNameCollateral", "optionServerCollateral");

            scriptServerConfig  += CGrid.CreateGridConfig(0, 77, 1, "colModelReCollateral", "colNameReCollateral", "optionServerReCollateral");
            scriptServerConfig  += CGrid.CreateGridConfig(0, 78, 1, "colModelProperty", "colNameProperty", "optionServerProperty");
            ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + "</script>";
        }
Example #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string scriptServerConfig = CGrid.CreateGridConfig(0, GridID, 1, "colModel" + InstantID, "colName" + InstantID, "optionServer" + InstantID);
            string config             = string.Format(
                "if(typeof Receipt_Instant =='undefined')" +
                "   Receipt_Instant={{}}; " +
                "Receipt_Instant['{0}'] = {{Instant:'{0}', RefType:'{1}',GridID:'{2}'}};\n", InstantID, RefType, GridID);

            ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + config + "</script>";
        }
Example #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (GridID == 0)
            {
                GridID = 45;
            }
            string gridConfig        = CGrid.CreateGridConfig(0, GridID, 1, "jqgInstance_ColModels", "jqgInstance_ColNames", "jqgInstance_Options");
            string gridID            = string.Format("var __HstGridID='{0}';\n", GridID);
            string gridConfiguration = GetGridConfigurationByID(GridID);

            ltrScriptClient.Text = string.Format("<script type='text/javascript'>\n{0}\n{1}\n{2}</script>", gridConfig, gridID, gridConfiguration);
        }
Example #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string scriptServerConfig = CGrid.CreateGridConfig(0, GridID, 1, "colModelGridBase_" + InstantID, "colNameGridBase_" + InstantID, "optionGridBase_" + InstantID);
                string config             = string.Format(
                    "if(typeof GridBase_Instant =='undefined')" +
                    "   GridBase_Instant={{}}; " +
                    "GridBase_Instant['{0}'] = {{Instant:'{0}', UrlData:'{1}', GridID:'{2}'}};\n", InstantID, UrlData, GridID);

                ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + config + "</script>";
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string scriptServerConfig = CGrid.CreateGridConfig(0, 76, 1, "colModelCollateral" + InstantID, "colNameCollateral" + InstantID, "optionServerCollateral" + InstantID);

            scriptServerConfig += CGrid.CreateGridConfig(0, 77, 1, "colModelReCollateral" + InstantID, "colNameReCollateral" + InstantID, "optionServerReCollateral" + InstantID);
            scriptServerConfig += CGrid.CreateGridConfig(0, 78, 1, "colModelProperty" + InstantID, "colNameProperty" + InstantID, "optionServerProperty" + InstantID);
            string config = string.Format(
                "if(typeof CRegisterAppendix_Instant =='undefined')" +
                "   CRegisterAppendix_Instant={{}}; " +
                "CRegisterAppendix_Instant['{0}'] = {{Instant:'{0}'}};\n", InstantID);

            ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + config + "</script>";
        }
Example #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         string scriptServerConfig = CGrid.CreateGridConfig(0, GridID, 129, "colModel_" + Instant, "colName_" + Instant, "option_" + Instant);
         string config             = string.Format(
             "if(typeof Simple_Instant =='undefined')" +
             "   Simple_Instant={{}}; " +
             "Simple_Instant['{0}'] = {{Instant:'{0}', RefType:'{1}', GridID:'{2}'}};\n", Instant, RefType, GridID);
         string strConfig = scriptServerConfig + config;
         ltrScriptClient.Text = string.Format("<script type='text/javascript'>{0};</script>", strConfig);
     }
 }
Example #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string scriptServerConfig = CGrid.CreateGridConfig(0, ButtoanGridID, 1, "colModelButtoan_" + InstantID, "colNameButtoan_" + InstantID, "optionButtoan_" + InstantID);
                scriptServerConfig += CGrid.CreateGridConfig(0, InvoiceGridID, 1, "colModelInvoice_" + InstantID, "colNameInvoice_" + InstantID, "optionInvoice_" + InstantID);

                string config = string.Format(
                    "if(typeof Cash_Instant =='undefined')" +
                    "   Cash_Instant={{}}; " +
                    "Cash_Instant['{0}'] = {{Instant:'{0}', RefType:'{1}', ButtoanGridID:'{2}', InvoiceGridID:'{3}'}};\n", InstantID, RefType, ButtoanGridID, InvoiceGridID);

                ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + config + "</script>";
            }
        }
Example #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GridID     = 39;
                InstantID  = "CSJournal";
                RefType    = "18";
                PersonType = "";
                string scriptServerConfig = CGrid.CreateGridConfig(0, GridID, 1, "colModelVoucher_" + InstantID, "colNameVoucher_" + InstantID, "optionVoucher_" + InstantID);
                string config             = string.Format(
                    "if(typeof Voucher_Instant =='undefined')" +
                    "   Voucher_Instant={{}}; " +
                    "Voucher_Instant['{0}'] = {{Instant:'{0}', RefType:'{1}', PersonType:'{2}',GridID:'{3}'}};\n", InstantID, RefType, PersonType, GridID);

                ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + config + "</script>";
            }
        }
Example #13
0
        public string GetGridConfig(int gridID, string inputvalue)
        {
            string gridConfig = "";

            try
            {
                string preName = "jqgInstance_";
                if (gridID == 0)
                {
                    gridID = 44;
                }
                gridConfig  = CGrid.CreateGridConfig(0, gridID, 1, preName + "ColModels", preName + "ColNames", preName + "Options");
                gridConfig += "\n" + string.Format("__HstGridID='{0}';\n", gridID);
                gridConfig += "\n" + GetGridConfigurationByID(gridID);
            }
            catch (Exception ex)
            {
                gridConfig = "var configResult='ERROR @ " + ex.Message + "';";
            }
            return(gridConfig);
        }
Example #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string scriptServerConfig = CGrid.CreateGridConfig(0, 5, 1, "colModelTax", "colNameTax", "optionServerTax");

            ltrScriptClient.Text = "<script type='text/javascript'>" + scriptServerConfig + "</script>";
        }