private void call_info(string Form_name, string code) { Class.DanhMuc_ChiNhanh dm = new Class.DanhMuc_ChiNhanh(); DataTable dt = dm.GetBranchByCode(code); txtBranchCode.Text = dt.Rows[0]["BranchCode"].ToString(); txtBranchName.Text = dt.Rows[0]["BranchName"].ToString(); txtAddress.Text = dt.Rows[0]["Address"].ToString(); txtPhone.Text = dt.Rows[0]["Phone"].ToString(); txtFax.Text = dt.Rows[0]["Fax"].ToString(); txtMinimumSalary.Value = (decimal)dt.Rows[0]["MinimumSalary"]; txtPersonName.Text = dt.Rows[0]["PersonName"].ToString(); txtQuantity.Text = dt.Rows[0]["Quantity"].ToString(); txtFactQuantity.Text = dt.Rows[0]["FactQuantity"].ToString(); txtDescription.Text = dt.Rows[0]["Description"].ToString(); }