private void call_info(string Form_name, string code) { Class.NW_Node cls = new Class.NW_Node(); cls.NodeCode = code; DataTable dt = cls.NW_Node_Get(); txtCode.Text = dt.Rows[0]["NodeCode"].ToString(); txtName.Text = dt.Rows[0]["NodeName"].ToString(); txtGroup.Text = dt.Rows[0]["NodeGroup"].ToString(); txtDescription.Text = dt.Rows[0]["Description"].ToString(); }
public frmNodeList_UpdateByPath(string node, string firstLocarion) { InitializeComponent(); txtCode.Text = node; txtCode.Enabled = false; Class.NW_Node cls = new Class.NW_Node(); cls.NodeCode = node; DataTable dt = cls.NW_Node_Get(); if(dt.Rows.Count==1){ txtPath.Text = dt.Rows[0]["Path"].ToString(); } if (txtPath.Text.Length < 1) { txtPath.Text = firstLocarion; } location = firstLocarion; }
public frmNodeList_UpdateByPath(string node, string firstLocarion) { InitializeComponent(); txtCode.Text = node; txtCode.Enabled = false; Class.NW_Node cls = new Class.NW_Node(); cls.NodeCode = node; DataTable dt = cls.NW_Node_Get(); if (dt.Rows.Count == 1) { txtPath.Text = dt.Rows[0]["Path"].ToString(); } if (txtPath.Text.Length < 1) { txtPath.Text = firstLocarion; } location = firstLocarion; }