コード例 #1
0
        private void BindData(int ID)
        {
            ExtendBLL.Responsibility responsibility = new ExtendBLL.Responsibility();
            ExtendModule.ResponsibilityAndOther responsibilityInfo = new ExtendModule.ResponsibilityAndOther();

            responsibilityInfo = responsibility.GetModel(ID);
            RespLabDDL.SelectedValue = responsibilityInfo.Lab_ID.ToString();
            RespName.Text = responsibilityInfo.Resp_Name;
            RespContent.Text = responsibilityInfo.Resp_Content;
        }
コード例 #2
0
        //为GridView绑定数据
        private void BindGridViewList(string strWhere)
        {
            ExtendBLL.Responsibility responsibility = new ExtendBLL.Responsibility();
            List<ExtendModule.ResponsibilityAndOther> responsibilityList = new List<ExtendModule.ResponsibilityAndOther>();

            responsibilityList = responsibility.GetResponsList(strWhere);
            gvResponsList.DataSource = responsibilityList;
            gvResponsList.DataBind();
        }