Beispiel #1
0
        private void InitData()
        {
            DataTable dt = new MW.BLL.B_ecan_domainvalue().GetDrpList("DOMAIN_ID='PROTYPE'");

            JBind.BindList(txtproType, dt, "DOMAINLABEL", "VALUE");
            txtproType.Items.Insert(0, "");
            DataTable db = new MW.BLL.B_ecan_domainvalue().GetDrpList("DOMAIN_ID='BRAND'");

            JBind.BindList(txtbrand, db, "DOMAINLABEL", "VALUE");
            txtbrand.Items.Insert(0, "");
            DataTable dc = new MW.BLL.B_ecan_domainvalue().GetDrpList("DOMAIN_ID='STATUS'");

            JBind.BindList(txtstatus, dc, "DOMAINLABEL", "VALUE");

            if (Id > 0)
            {//edit
                model = bll.GetModel(Id);
                if (model != null)
                {
                    txtremark.Text           = model.remark;
                    txticonURL.Text          = model.iconURL;
                    txtname.Text             = model.name;
                    txtversion.Text          = model.version;
                    txtapkurl.Text           = model.apkurl;
                    txtiosurl.Text           = model.iosurl;
                    txtbrand.SelectedValue   = model.brand;
                    txtproType.SelectedValue = model.proType;
                    txtstatus.SelectedValue  = model.status;
                    txtpkgid.Text            = model.pkgid;
                }
            }
        }
Beispiel #2
0
        private void InitData()
        {
            DataTable dt = new MW.BLL.B_ecan_domainvalue().GetDrpList("DOMAIN_ID='PROTYPE'");

            JBind.BindList(txtproType, dt, "DOMAINLABEL", "VALUE");
            txtproType.Items.Insert(0, "");
            DataTable db = new MW.BLL.B_ecan_domainvalue().GetDrpList("DOMAIN_ID='BRAND'");

            JBind.BindList(txtbrand, db, "DOMAINLABEL", "VALUE");
            txtbrand.Items.Insert(0, "");

            txtSearchName.Text       = SearchName;
            txtbrand.SelectedValue   = brand;
            txtproType.SelectedValue = protype;
        }
Beispiel #3
0
        protected string GetType(object n_type)
        {
            if (n_type != null && n_type.ToString() != "0")
            {
                var model = new MW.BLL.B_ecan_domainvalue().GetModelAoe(n_type.ToString());
                if (model != null)
                {
                    var text = model.DOMAINLABEL.Replace("_T_:", "");
                    //if (text.StartsWith("i18n."))
                    text = B_ecan_i18n_properties.inance.GetStrByLang(BaseUi.lang, text);
                    return(text);
                }
            }

            return("");
        }