Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 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();
 }