private void SetEstLevelList() { Biz_Bsc_Kpi_Qlt_Info objBSC = new Biz_Bsc_Kpi_Qlt_Info(); DataSet rDs = objBSC.GetAllList(this.IEstTermRefID); //ugrdBEstLevel.Clear(); //ugrdBEstLevel.DataSource = rDs; //ugrdBEstLevel.DataBind(); }
private void InsertUpdateData() { Biz_Bsc_Kpi_Qlt_Info objBSC = new Biz_Bsc_Kpi_Qlt_Info(); UltraGridRow row; CheckBox chk; TemplatedColumn col; CheckBox chk1; TemplatedColumn col1; for (int i = 0; i < ugrdEstLevel.Rows.Count; i++) { row = ugrdEstLevel.Rows[i]; col = (TemplatedColumn)row.Band.Columns.FromKey("SETTLE_MEAN_YN"); chk = (CheckBox)((CellItem)col.CellItems[row.BandIndex]).FindControl("chkUse"); col1 = (TemplatedColumn)row.Band.Columns.FromKey("SETTLE_DEVIATION_YN"); chk1 = (CheckBox)((CellItem)col1.CellItems[row.BandIndex]).FindControl("chkUse"); if (true) { objBSC.Iestterm_ref_id = int.Parse(row.Cells.FromKey("ESTTERM_REF_ID").Value.ToString()); objBSC.Iest_level = int.Parse(row.Cells.FromKey("EST_LEVEL").Value.ToString()); objBSC.Iest_level_name = row.Cells.FromKey("EST_LEVEL_NAME").Value.ToString(); objBSC.Isettle_mean_yn = (chk.Checked) ? "Y" : "N"; objBSC.Isettle_deviation_yn = (chk1.Checked) ? "Y" : "N"; objBSC.Iweight = double.Parse(row.Cells.FromKey("WEIGHT").Value.ToString()); objBSC.Iest_order = int.Parse(row.Cells.FromKey("EST_ORDER").Value.ToString()); objBSC.Idescriptions = (row.Cells.FromKey("DESCRIPTINS").Value == null) ? " " :row.Cells.FromKey("DESCRIPTINS").Value.ToString(); objBSC.InsertData(objBSC.Iestterm_ref_id , objBSC.Iest_level , objBSC.Iest_level_name , objBSC.Isettle_mean_yn , objBSC.Isettle_deviation_yn , objBSC.Iweight , objBSC.Iest_order , objBSC.Idescriptions , gUserInfo.Emp_Ref_ID); } } }