Exemple #1
0
        private void LoadMasterData_Other()
        {
            try
            {
                DataSet ds = new DataSet();
                ds = SQLHelper.ExecuteDataSetByStore("sp_Get_Master_Commission_Other");
                DataTable dt = new DataTable();
                if (ds != null && ds.Tables.Count == 2)
                {
                    dt = ds.Tables[0];
                    table_Part_Profit_Other = ds.Tables[1];
                }
                dgv_Other.Columns.Clear();
                dgc_Other.DataSource = dt;
                dgv_Other.BestFitColumns(true);

                GridColumn col = dgv_Other.Columns["MinDay"];
                if (col != null)
                {
                    col.Visible = false;
                }
                col = dgv_Other.Columns["MaxDay"];
                if (col != null)
                {
                    col.Visible = false;
                }
                col = dgv_Other.Columns["ID"];
                if (col != null)
                {
                    col.Visible = false;
                }
            }
            catch (Exception ex)
            {
                API.API_ERRORLOG(new ERRORLOG(Form_Main.IPAddress, "Frm_Commission", "LoadMasterData_Other()", ex.ToString()));
            }
        }