示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfIsUpdate.Value = "N";
         dtKPI.Rows.Clear();
         dtKPI.Dispose();
         grKPI.DataSource = null;
         grKPI.DataBind();
         Common.EmptyTextBoxValues(this);
         lblMsg.Text = "";
         Common.FillDropDownList(objKpi.SelectIndicatirType(0), ddlIndicator, "IndicatirTypeName", "IndTypeId", false);
         Common.FillDropDownList(objKpi.SelectGroup(0), ddlGroup, "GroupName", "GroupId", false);
         this.EntryMode(false);
         this.OpenRecord();
     }
 }
 private void OpenRecord()
 {
     dtIndicatirType            = objKpi.SelectIndicatirType(0);
     grIndicatirType.DataSource = dtIndicatirType;
     grIndicatirType.DataBind();
 }