public void bindTermsCondition() { List <ParaList> para = new List <ParaList>() { new ParaList { Key = "@i_CompId", Value = CurrentUser.CompId.ToString() }, //new ParaList {Key="@i_BranchId", Value=CurrentUser.BranchId.ToString() }, }; ds = crmclient.list(para, "TNC"); GvTermsCondition.DataSource = ds.Tables[0]; GvTermsCondition.DataBind(); }
protected void DrpTncSubject_SelectedIndexChanged(object sender, EventArgs e) { string subject = DrpTncSubject.SelectedItem.Text; List <ParaList> para = new List <ParaList>() { new ParaList { Key = "@i_CompId", Value = CurrentUser.CompId }, // new ParaList {Key="@i_BranchId", Value=CurrentUser.BranchId }, new ParaList { Key = "@i_TNCSub", Value = subject.ToString() }, }; ds = crmclient.FillDDL(para, "TNC_QUE"); GvTermsCondition.DataSource = ds.Tables[0]; GvTermsCondition.DataBind(); }