Beispiel #1
0
        private void GetLicenseType()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetLicenseType(SysMessage.DefaultSelecting);

            BindToDDLArr(ddlLicenseType, ls.DataResponse);
        }
Beispiel #2
0
        protected void SetCheckBoxLicense(string Assoc_code)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var res = biz.GetLicenseType("");

            chkLicense.DataSource     = res.DataResponse;
            chkLicense.DataTextField  = "Name";
            chkLicense.DataValueField = "Id";
            chkLicense.DataBind();

            var sel = biz.GetAssociationLicense(Assoc_code);

            if (sel.DataResponse != null)
            {
                var data = sel.DataResponse;
                foreach (ListItem ck in chkLicense.Items)
                {
                    var qry = data.FirstOrDefault(s => s.LICENSE_TYPE_CODE == ck.Value && s.ACTIVE == "Y");
                    if (qry != null)
                    {
                        ck.Selected = true;
                    }
                }
            }

            //ValidTypeCheckBox();
        }
Beispiel #3
0
        private void GetLicenseType()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetLicenseType(SysMessage.DefaultSelecting);

            BindToDDL(ddlTypeLicense, ls.DataResponse);
            BindToDDL(ddlDetailOfficerCode, ls.DataResponse);
        }
        private void GetLicenseType()
        {
            var message = SysMessage.DefaultSelecting;

            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetLicenseType(message);

            BindToDDL(ddlTypeLicense, ls.DataResponse.ToList());
        }
Beispiel #5
0
        protected void InitGridView(BLL.DataCenterBiz biz)
        {
            IEnumerable <DTO.DataItem> licenseTypes = biz.GetLicenseType("").DataResponse;

            licenseTypes.ToList().RemoveAt(0);
            foreach (DTO.DataItem licenseType in licenseTypes)
            {
                ConfigGridView gvDataView = ConCreateGridView(biz, licenseType);
                pnlGridConfig.Controls.Add(gvDataView);
                gvDataView.DataBind();
            }
        }
Beispiel #6
0
        protected void InitGridView(BLL.DataCenterBiz biz)
        {
            IEnumerable <DTO.DataItem> licenseTypes = biz.GetLicenseType("").DataResponse;

            licenseTypes.ToList().RemoveAt(0);
            foreach (DTO.DataItem licenseType in licenseTypes)
            {
                ConfigGridView gvDataView = ConCreateGridView(biz, licenseType);
                gvDataView.LinkButtonDelete_Success += new EventHandler(LinkButtonDelete_Success);
                this.Controls.Add(gvDataView);
                gvDataView.DataBind();
            }
        }
Beispiel #7
0
        protected void InitCheckBoxLicense()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var res = biz.GetLicenseType("");

            chkLicense.DataSource     = res.DataResponse;
            chkLicense.DataTextField  = "Name";
            chkLicense.DataValueField = "Id";
            chkLicense.DataBind();
            ddlCompType.SelectedValue  = "03";
            ddlAgentType.SelectedValue = "03";
            //ValidTypeCheckBox();
        }