public void ClearTextValue() { pnchipSelf = new Frame_Production_PNChipSelfInfor(); try { { pnchipSelf = (Frame_Production_PNChipSelfInfor)Page.LoadControl("../../Frame/Production/PNChipSelfInfor.ascx"); pnchipSelf.ClearDropDownList(); ConfigChipID(pnchipSelf); pnchipSelf.Colum1TextSelected = 0; pnchipSelf.Colum2TextSelected = 0; pnchipSelf.Colum3TextSelected = 0; pnchipSelf.EnableColum3Text = true; pnchipSelf.EnableColum2Text = true; pnchipSelf.EnableColum1Text = true; //chipsetControl.TH8Text = mydt.Columns[8].ColumnName; this.PNChipSelfInfor.Controls.Add(pnchipSelf); } } catch (System.Exception ex) { throw ex; } }
public bool ConfigChipID(Frame_Production_PNChipSelfInfor input) { ChipIDMap.Clear(); try { for (int i = 0; i < mydtChip.Rows.Count; i++) { input.InsertColum1Text(i, new ListItem(mydtChip.Rows[i]["ItemName"].ToString().Trim())); ChipIDMap.Add(i, Convert.ToInt32(mydtChip.Rows[i]["ID"])); } return(true); } catch (System.Exception ex) { throw ex; } }