Пример #1
0
        protected override void onCreateMainItems()
        {
            this._ucDjrq            = new UcDateInput();
            this._ucDjrq.CName      = "单据日期";
            this._ucDjrq.AllowEmpty = false;
            this.controls.Add(this._ucDjrq);

            this._uCgbt            = new UcTextInput();
            this._uCgbt.CName      = "采购标题";
            this._uCgbt.AllowEmpty = false;
            this.controls.Add(this._uCgbt);

            this._ucSfjj           = new UcCheckedInput();
            this._ucSfjj.CName     = "是否加急";
            this._ucSfjj.AllowEdit = false;
            this.controls.Add(this._ucSfjj);

            this._ucCgyy       = new UcTextInput();
            this._ucCgyy.CName = "采购原因";
            this.controls.Add(this._ucCgyy);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);

            this._ucDetail            = new UcJbCgspdDetail(this.PP.detailTitle);
            this._ucDetail.AllowEmpty = false;
            this.controls.Add(this._ucDetail);
            this.Children.Insert(1, this._ucDetail);
        }
Пример #2
0
        protected override void onCreateMainItems()
        {
            this._ucLxr            = new UcAutoCompleteInput(SdrdDjlx.RDLXR);
            this._ucLxr.CName      = "客户信息";
            this._ucLxr.AllowEmpty = false;
            this.controls.Add(this._ucLxr);

            this._ucXm       = new UcAutoCompleteInput(SdrdDjlx.RDXM, "1");
            this._ucXm.CName = "项目信息";
            this.controls.Add(this._ucXm);

            this._ucJlrq            = new UcDateInput();
            this._ucJlrq.CName      = "交流日期";
            this._ucJlrq.Flag       = UcDateInput.NOW;
            this._ucJlrq.AllowEmpty = false;
            this.controls.Add(this._ucJlrq);

            this._ucJllx            = new UcCheckedInput("0,初次拜访;1,正常回访 ;2,项目跟进;3,其他", "1");
            this._ucJllx.CName      = "交流类型";
            this._ucJllx.AllowEmpty = false;
            this.controls.Add(this._ucJllx);

            this._ucJlpj            = new UcCheckedInput("1,不满意;5,基本满意;10,非常满意", "5");
            this._ucJlpj.CName      = "交流评价";
            this._ucJlpj.AllowEmpty = false;
            this.controls.Add(this._ucJlpj);

            this._ucJlzy       = new UcTextArea();
            this._ucJlzy.CName = "交流摘要";
            this.controls.Add(this._ucJlzy);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);
        }
Пример #3
0
        protected override void onCreateMainItems()
        {
            ucUserName = new UcTextInput()
            {
                CName = "姓名", AllowEmpty = false
            };
            controls.Add(ucUserName);

            ucPassword = new UcPassword()
            {
                CName = "密码", AllowEmpty = false
            };
            controls.Add(ucPassword);

            ucDb = new UcCheckedInput()
            {
                CName = "账套", AllowEmpty = false
            };
            controls.Add(ucDb);

            ucIsSaved = new UcRadioBox {
                CName = "是否保存登录信息"
            };
            controls.Add(ucIsSaved);
        }
Пример #4
0
        protected override void onCreateMainItems()
        {
            this._ucLczy            = new UcTextInput();
            this._ucLczy.CName      = "流程摘要";
            this._ucLczy.AllowEmpty = false;
            this._ucLczy.AllowEdit  = false;
            this.controls.Add(this._ucLczy);

            this._ucBzmc            = new UcTextInput();
            this._ucBzmc.CName      = "步骤名称";
            this._ucBzmc.AllowEmpty = false;
            this._ucBzmc.AllowEdit  = false;
            this.controls.Add(this._ucBzmc);

            this._ucDwmc            = new UcTextInput();
            this._ucDwmc.CName      = "审批人部门";
            this._ucDwmc.AllowEmpty = true;
            this._ucDwmc.AllowEdit  = false;
            this.controls.Add(this._ucDwmc);

            this._ucRolemc            = new UcTextInput();
            this._ucRolemc.CName      = "审批人角色";
            this._ucRolemc.AllowEmpty = true;
            this._ucRolemc.AllowEdit  = false;
            this.controls.Add(this._ucRolemc);

            this._ucZdr            = new UcTextInput();
            this._ucZdr.CName      = "审批人";
            this._ucZdr.AllowEmpty = false;
            this._ucZdr.AllowEdit  = false;
            this.controls.Add(this._ucZdr);

            this._ucSpyj            = new UcTextInput();
            this._ucSpyj.CName      = "审批意见";
            this._ucSpyj.AllowEmpty = true;
            this.controls.Add(this._ucSpyj);

            this._ucJlzt              = new UcCheckedInput("1,同意;2,不同意", "", false);
            this._ucJlzt.CName        = "审批状态";
            this._ucJlzt.AllowEmpty   = false;
            this._ucJlzt.DataChanged += new EventHandler <HsEventArgs <string> >((sender, e) =>
            {
                if (e.Data == "1")
                {
                    this._ucZdthsp.Reset();
                    this._ucZdthsp.AllowEdit = false;
                }
                else
                {
                    this._ucZdthsp.AllowEdit = true;
                }
            });
            this.controls.Add(this._ucJlzt);

            this._ucZdthsp            = new UcAutoCompleteInput("ZDTHSP", this.userData.GetValueByLabel("SpId"), true);
            this._ucZdthsp.CName      = "退回至";
            this._ucZdthsp.AllowEmpty = true;
            this._ucZdthsp.AllowEdit  = false;
            this.controls.Add(this._ucZdthsp);
        }
Пример #5
0
        public static Tuple<IControlValue, int, int> CreateFromXQueryArg(IUcPage page, XElement xArg)
        {
            string name = xArg.GetFirstElementValue("Name");
            string cname = xArg.GetFirstElementValue("CName");
            string Class = xArg.GetFirstElementValue("Class").ToUpper();
            string classInfo = xArg.GetFirstElementValue("ClassInfo");
            string classParams = xArg.GetFirstElementValue("ClassParams");
            bool allowEmpty = xArg.GetFirstElementValue("AllowEmpty", "1") == "0" ? false : true;
            string defaultValue = xArg.GetFirstElementValue("Default");
            int order = int.Parse(xArg.GetFirstElementValue("Order", "0"));
            int sqlOrder = int.Parse(xArg.GetFirstElementValue("SqlOrder", "0"));

            IControlValue control = null;

            switch (xArg.Element("Class").Value.ToUpper())
            {
                case ControlType.TextInput:
                    control = new UcTextInput();
                    control.ControlValue = defaultValue;
                    break;
                case ControlType.TextArea:
                case "AREA":
                    control = new UcTextArea();
                    control.ControlValue = defaultValue;
                    break;
                case ControlType.NumInput:
                case "NUMBER":
                case "NUMBERINPUT":
                    control = new UcNumInput();
                    control.ControlValue = defaultValue;
                    break;
                case ControlType.CheckBox:
                case "CHECK":
                    control = new UcCheckedInput(classInfo, defaultValue, true);
                    break;
                case ControlType.RadioBox:
                case "RADIO":
                    control = new UcCheckedInput(classInfo, defaultValue, false);
                    break;
                case ControlType.AutoComplete:
                case "AUTO":
                case "AUTOCOMPLETETEXT":
                case "AUTOCOMPLETEINPUT":
                    control = new UcAutoCompleteInput(classInfo, classParams, false);
                    break;
                case ControlType.DateInput:
                    control = new UcDateInput();
                    ((UcDateInput)control).Flag = classInfo;
                    break;
            }

            control.CName = cname;
            control.AllowEmpty = allowEmpty;

            return new Tuple<IControlValue, int, int>(control, order, sqlOrder);
        }
Пример #6
0
        protected override void onCreateMainItems()
        {
            this._ucHt              = new UcAutoCompleteInput(SdrdDjlx.RDHT);
            this._ucHt.CName        = "合同信息";
            this._ucHt.AllowEmpty   = true;
            this._ucHt.DataChanged += new EventHandler <HsEventArgs <string> >(async(sender, e) =>
            {
                try
                {
                    if (this.iNewRecode == 0)
                    {
                        //获取合同未回款金额。
                        string htId = this._ucHt.ControlValue;

                        if (!string.IsNullOrWhiteSpace(htId))
                        {
                            string result = await((SdrdWSUtil)GetWSUtil()).GetHt(GetLoginData().ProgressId, htId);

                            HsLabelValue ht = XElement.Parse(result).ToHsLabelValue();

                            this._ucHkje.ControlValue = ht.GetValueByLabel("Syje");
                        }
                    }
                }
                catch (Exception ex)
                {
                    this.ShowError(ex.Message);
                }
            });
            this.controls.Add(this._ucHt);

            this._ucJlrq = new UcDateInput()
            {
                Flag = UcDateInput.NOW
            };
            this._ucJlrq.CName      = "合同日期";
            this._ucJlrq.AllowEmpty = false;
            this.controls.Add(this._ucJlrq);

            this._ucHksm       = new UcTextInput();
            this._ucHksm.CName = "回款说明";
            this.controls.Add(this._ucHksm);

            this._ucHkje = new UcNumInput()
            {
                CanFushu = false
            };
            this._ucHkje.CName      = "合同金额";
            this._ucHkje.AllowEmpty = false;
            this.controls.Add(this._ucHkje);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);
        }
Пример #7
0
        protected override void onCreateMainItems()
        {
            this._ucXm            = new UcAutoCompleteInput(SdrdDjlx.RDKH);
            this._ucXm.CName      = "项目信息";
            this._ucXm.AllowEmpty = true;
            this.controls.Add(this._ucXm);

            this._ucKh            = new UcAutoCompleteInput(SdrdDjlx.RDKH);
            this._ucKh.CName      = "客户信息";
            this._ucKh.AllowEmpty = true;
            this.controls.Add(this._ucKh);

            this._ucHtbh            = new UcTextInput();
            this._ucHtbh.CName      = "合同编号";
            this._ucHtbh.AllowEmpty = false;
            this.controls.Add(this._ucHtbh);

            this._ucHtmc            = new UcTextInput();
            this._ucHtmc.CName      = "合同名称";
            this._ucHtmc.AllowEmpty = false;
            this.controls.Add(this._ucHtmc);

            this._ucHtrq = new UcDateInput()
            {
                Flag = UcDateInput.NOW
            };
            this._ucHtrq.CName      = "合同日期";
            this._ucHtrq.AllowEmpty = false;
            this.controls.Add(this._ucHtrq);

            this._ucHtje = new UcNumInput()
            {
                CanFushu = false
            };
            this._ucHtje.CName      = "合同金额";
            this._ucHtje.AllowEmpty = false;
            this.controls.Add(this._ucHtje);

            this._ucFkfs       = new UcTextInput();
            this._ucFkfs.CName = "付款方式";
            this.controls.Add(this._ucFkfs);

            this._ucHtqx       = new UcTextInput();
            this._ucHtqx.CName = "合同期限";
            this.controls.Add(this._ucHtqx);

            this._ucZytk       = new UcTextInput();
            this._ucZytk.CName = "主要条款";
            this.controls.Add(this._ucZytk);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);
        }
Пример #8
0
        protected override void onCreateMainItems()
        {
            this._ucDjrq            = new UcDateInput();
            this._ucDjrq.CName      = "单据日期";
            this._ucDjrq.AllowEmpty = false;
            this.controls.Add(this._ucDjrq);

            this._ucXmmc            = new UcTextInput();
            this._ucXmmc.CName      = "项目名称";
            this._ucXmmc.AllowEmpty = false;
            this.controls.Add(this._ucXmmc);

            this._ucWjbh            = new UcTextInput();
            this._ucWjbh.CName      = "文件编号";
            this._ucWjbh.AllowEmpty = false;
            this.controls.Add(this._ucWjbh);

            this._ucJtsp            = new UcCheckedInput("0,否;1,行管委;2,审监委", "-1");
            this._ucJtsp.CName      = "集团审批";
            this._ucJtsp.AllowEmpty = false;
            this.controls.Add(this._ucJtsp);

            this._ucYsje            = new UcNumInput();
            this._ucYsje.CName      = "预算金额";
            this._ucYsje.AllowEmpty = false;
            this.controls.Add(this._ucYsje);

            this._ucFjxm            = new UcCheckedInput("1,招标文件草稿;2,图纸;100,其他", "1");
            this._ucFjxm.CName      = "附件项目";
            this._ucFjxm.AllowEmpty = false;
            this.controls.Add(this._ucFjxm);

            this._ucSfjg            = new UcCheckedInput();
            this._ucSfjg.CName      = "是否有技改计划";
            this._ucSfjg.AllowEmpty = false;
            this.controls.Add(this._ucSfjg);

            this._ucJgsm            = new UcTextInput();
            this._ucJgsm.CName      = "技改说明";
            this._ucJgsm.AllowEmpty = true;
            this.controls.Add(this._ucJgsm);

            this._ucQtsm            = new UcTextArea();
            this._ucQtsm.CName      = "其他说明";
            this._ucQtsm.AllowEmpty = true;
            this.controls.Add(this._ucQtsm);

            this._ucBz            = new UcTextInput();
            this._ucBz.CName      = "备注";
            this._ucBz.AllowEmpty = true;
            this.controls.Add(this._ucBz);
        }
Пример #9
0
        protected override void onCreateMainItems()
        {
            this._ucName            = new UcTextInput();
            this._ucName.CName      = "姓名";
            this._ucName.AllowEmpty = false;
            this.controls.Add(this._ucName);

            this._ucZwzc       = new UcTextInput();
            this._ucZwzc.CName = "职务职称";
            this.controls.Add(this._ucZwzc);

            this._ucSex       = new UcCheckedInput("0,男;1,女", "0");
            this._ucSex.CName = "性别";
            this.controls.Add(this._ucSex);

            this._ucBirthday       = new UcDateInput();
            this._ucBirthday.CName = "生日";
            this.controls.Add(this._ucBirthday);

            this._ucPhone       = new UcTextInput();
            this._ucPhone.CName = "电话";
            this.controls.Add(this._ucPhone);

            this._ucPhone2       = new UcTextInput();
            this._ucPhone2.CName = "电话2";
            this.controls.Add(this._ucPhone2);

            this._ucEmail       = new UcTextInput();
            this._ucEmail.CName = "电子邮件";
            this.controls.Add(this._ucEmail);

            this._ucQQ       = new UcTextInput();
            this._ucQQ.CName = "QQ";
            this.controls.Add(this._ucQQ);

            this._ucWe       = new UcTextInput();
            this._ucWe.CName = "微信";
            this.controls.Add(this._ucWe);

            this._ucHobby       = new UcTextInput();
            this._ucHobby.CName = "爱好";
            this.controls.Add(this._ucHobby);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);
        }
Пример #10
0
        protected override void onCreateMainItems()
        {
            this._ucDjrq            = new UcDateInput();
            this._ucDjrq.CName      = "单据日期";
            this._ucDjrq.AllowEmpty = false;
            this.controls.Add(this._ucDjrq);

            this._uXmmc            = new UcTextInput();
            this._uXmmc.CName      = "项目名称";
            this._uXmmc.AllowEmpty = false;
            this.controls.Add(this._uXmmc);

            this._ucJtsp            = new UcCheckedInput("0,否;1,行管委;2,审监委", "-1", false);
            this._ucJtsp.CName      = "集团审批";
            this._ucJtsp.AllowEmpty = false;
            this.controls.Add(this._ucJtsp);

            this._ucFjxm            = new UcCheckedInput("1,比价单;100,其他", "-1", true);
            this._ucFjxm.CName      = "附件项目";
            this._ucFjxm.AllowEmpty = false;
            this.controls.Add(this._ucFjxm);

            this._ucDxsm       = new UcTextInput();
            this._ucDxsm.CName = "定向说明";
            this.controls.Add(this._ucDxsm);

            this._ucBjyj            = new UcTextInput();
            this._ucBjyj.CName      = "报价意见";
            this._ucBjyj.AllowEmpty = false;
            this.controls.Add(this._ucBjyj);

            this._ucBjje            = new UcTextInput();
            this._ucBjje.CName      = "报价金额";
            this._ucBjje.AllowEmpty = false;
            this.controls.Add(this._ucBjje);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);

            this._ucDetail            = new UcJbBjdxbjjls(this.PP.detailTitle);
            this._ucDetail.AllowEmpty = false;
            this.controls.Add(this._ucDetail);
            this.Children.Insert(1, this._ucDetail);
        }
Пример #11
0
        protected override void onCreateMainItems()
        {
            this._ucHt            = new UcAutoCompleteInput("RDHT_WKH", "", true);
            this._ucHt.CName      = "合同信息";
            this._ucHt.AllowEmpty = true;
            this.controls.Add(this._ucHt);

            this._ucJlrq = new UcDateInput()
            {
                Flag = UcDateInput.NOW
            };
            this._ucJlrq.CName      = "记录日期";
            this._ucJlrq.AllowEmpty = false;
            this.controls.Add(this._ucJlrq);

            this._ucKhmyd       = new UcTextInput();
            this._ucKhmyd.CName = "客户满意度";
            this.controls.Add(this._ucKhmyd);

            this._ucSjzlyll         = new UcTextInput();
            this._ucSjzlyll.CName   = "设计质量优良率";
            this._ucJlrq.AllowEmpty = false;
            this.controls.Add(this._ucSjzlyll);

            this._ucXmjd       = new UcTextInput();
            this._ucXmjd.CName = "项目进度";
            this.controls.Add(this._ucXmjd);

            this._ucXmrcgl       = new UcTextInput();
            this._ucXmrcgl.CName = "项目日常管理";
            this.controls.Add(this._ucXmrcgl);

            this._ucBmjdxz       = new UcTextInput();
            this._ucBmjdxz.CName = "部门间的协作";
            this.controls.Add(this._ucBmjdxz);

            this._ucKzxzb       = new UcTextInput();
            this._ucKzxzb.CName = "控制性指标";
            this.controls.Add(this._ucKzxzb);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);
        }
Пример #12
0
        protected override void onCreateMainItems()
        {
            this._ucKhmc            = new UcTextInput();
            this._ucKhmc.CName      = "客户名称";
            this._ucKhmc.AllowEmpty = false;
            this.controls.Add(this._ucKhmc);

            this._ucDz       = new UcTextInput();
            this._ucDz.CName = "地址";
            this.controls.Add(this._ucDz);

            this._ucYzbm       = new UcTextInput();
            this._ucYzbm.CName = "邮政编码";
            this.controls.Add(this._ucYzbm);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);
        }
Пример #13
0
            protected override void onCreateMainItems()
            {
                this._ucWlmc            = new UcTextInput();
                this._ucWlmc.CName      = "物料名称";
                this._ucWlmc.AllowEmpty = true;
                this.controls.Add(this._ucWlmc);

                this._ucBjdw            = new UcTextInput();
                this._ucBjdw.CName      = "报价单位";
                this._ucBjdw.AllowEmpty = false;
                this.controls.Add(this._ucBjdw);

                this._ucLxfs            = new UcTextInput();
                this._ucLxfs.CName      = "联系方式";
                this._ucLxfs.AllowEmpty = true;
                this.controls.Add(this._ucLxfs);

                this._ucGgxh            = new UcTextInput();
                this._ucGgxh.CName      = "规格型号";
                this._ucGgxh.AllowEmpty = true;
                this.controls.Add(this._ucGgxh);

                this._ucSl            = new UcTextInput();
                this._ucSl.CName      = "数量";
                this._ucSl.AllowEmpty = true;
                this.controls.Add(this._ucSl);

                this._ucDj            = new UcTextInput();
                this._ucDj.CName      = "单价";
                this._ucDj.AllowEmpty = true;
                this.controls.Add(this._ucDj);

                this._ucJe            = new UcTextInput();
                this._ucJe.CName      = "金额";
                this._ucJe.AllowEmpty = false;
                this.controls.Add(this._ucJe);

                this._ucBz            = new UcTextInput();
                this._ucBz.CName      = "备注";
                this._ucBz.AllowEmpty = true;
                this.controls.Add(this._ucBz);
            }
Пример #14
0
            protected override void onCreateMainItems()
            {
                this._ucMc            = new UcTextInput();
                this._ucMc.CName      = "名称";
                this._ucMc.AllowEmpty = false;
                this.controls.Add(this._ucMc);

                this._ucXh            = new UcTextInput();
                this._ucXh.CName      = "型号";
                this._ucXh.AllowEmpty = true;
                this.controls.Add(this._ucXh);

                this._ucKcsl            = new UcTextInput();
                this._ucKcsl.CName      = "库存数量";
                this._ucKcsl.AllowEmpty = true;
                this.controls.Add(this._ucKcsl);

                this._ucSl            = new UcTextInput();
                this._ucSl.CName      = "采购数量";
                this._ucSl.AllowEmpty = false;
                this.controls.Add(this._ucSl);

                this._ucDj            = new UcTextInput();
                this._ucDj.CName      = "单价";
                this._ucDj.AllowEmpty = true;
                this.controls.Add(this._ucDj);

                this._ucJe            = new UcTextInput();
                this._ucJe.CName      = "金额";
                this._ucJe.AllowEmpty = true;
                this.controls.Add(this._ucJe);

                this._ucYq            = new UcTextInput();
                this._ucYq.CName      = "要求";
                this._ucYq.AllowEmpty = true;
                this.controls.Add(this._ucYq);

                this._ucBz            = new UcTextInput();
                this._ucBz.CName      = "备注";
                this._ucBz.AllowEmpty = true;
                this.controls.Add(this._ucBz);
            }
Пример #15
0
        protected override void onCreateMainItems()
        {
            this._ucKh            = new UcAutoCompleteInput(SdrdDjlx.RDKH);
            this._ucKh.CName      = "客户信息";
            this._ucKh.AllowEmpty = false;
            this.controls.Add(this._ucKh);

            this._ucXmmc            = new UcTextInput();
            this._ucXmmc.CName      = "项目名称";
            this._ucXmmc.AllowEmpty = false;
            this.controls.Add(this._ucXmmc);

            this._ucXmly       = new UcTextInput();
            this._ucXmly.CName = "项目来源";
            this.controls.Add(this._ucXmly);

            this._ucRq            = new UcDateInput();
            this._ucRq.CName      = "日期";
            this._ucRq.AllowEmpty = false;
            this.controls.Add(this._ucRq);

            this._ucLxr       = new UcTextInput();
            this._ucLxr.CName = "我方联系人";
            this.controls.Add(this._ucLxr);

            this._ucZy       = new UcTextInput();
            this._ucZy.CName = "摘要";
            this.controls.Add(this._ucZy);

            this._ucXmjd            = new UcCheckedInput("0,联系中;10,进行中;15,暂停;20,合作;30,未合作;35,用户终止", "");
            this._ucXmjd.CName      = "项目进度";
            this._ucXmjd.AllowEmpty = false;
            this.controls.Add(this._ucXmjd);

            this._ucBz       = new UcTextInput();
            this._ucBz.CName = "备注";
            this.controls.Add(this._ucBz);
        }
Пример #16
0
            public AutoCompleteDataPopupPage(string cName, IEnumerable <HsLabelValue> datas)
            {
                ObservableCollection <HsLabelValue> displayItems = new ObservableCollection <HsLabelValue>(datas);

                this.Title = $"请选择{cName}";

                //ControlButton

                UserDo1Text = "重置";
                UserDo2Text = "取消";


                //Listview

                SearchBar search2 = new SearchBar()
                {
                    Placeholder = "输入关键字筛选..."
                };

                search2.TextChanged += new EventHandler <TextChangedEventArgs>((sender, e) =>
                {
                    displayItems.Clear();

                    string pattern = e.NewTextValue;

                    foreach (HsLabelValue data in datas.Where(r => r.Label.Contains(pattern) || r.Value.Contains(pattern) || string.IsNullOrWhiteSpace(pattern)))
                    {
                        displayItems.Add(data);
                    }
                });

                UcTextInput search = new UcTextInput()
                {
                    Placeholder = "输入关键字筛选...", Margin = new Thickness(5)
                };

                search.DataChanged += new EventHandler <HsEventArgs <string> >((sender, e) =>
                {
                    displayItems.Clear();

                    string pattern = e.Data;

                    foreach (HsLabelValue data in datas.Where(r => r.Label.Contains(pattern) || r.Value.Contains(pattern) || string.IsNullOrWhiteSpace(pattern)))
                    {
                        displayItems.Add(data);
                    }
                });

                ListView lv = new ListView()
                {
                    HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand
                };

                lv.ItemsSource = displayItems;

                DataTemplate dt = new DataTemplate(typeof(UcIHsLabelValueCell));

                dt.SetBinding(UcIHsLabelValueCell.IHsLabelValueProperty, new Binding("."));

                lv.ItemTemplate = dt;

                lv.ItemSelected += new EventHandler <SelectedItemChangedEventArgs>(async(sender, e) =>
                {
                    if (e.SelectedItem != null)
                    {
                        this.onPopupData(SysActionKeys.择数据, ((HsLabelValue)e.SelectedItem).Value);

                        await PopupNavigation.PopAsync();
                    }
                });

                lv.ItemTapped += new EventHandler <ItemTappedEventArgs>((sender, e) =>
                {
                    lv.SelectedItem = null;
                });

                mainLayout.Children.Add(search2);
                mainLayout.Children.Add(lv);
            }
Пример #17
0
        protected override void onCreateMainItems()
        {
            this._ucJgqrd            = new UcAutoCompleteInput("JBJGQRD");
            this._ucJgqrd.CName      = "价格确认信息";
            this._ucJgqrd.AllowEmpty = true;
            this.controls.Add(this._ucJgqrd);

            this._ucDjrq            = new UcDateInput();
            this._ucDjrq.CName      = "单据日期";
            this._ucDjrq.AllowEmpty = false;
            this.controls.Add(this._ucDjrq);

            this._ucHtdw            = new UcTextInput();
            this._ucHtdw.CName      = "合同单位";
            this._ucHtdw.AllowEmpty = false;
            this.controls.Add(this._ucHtdw);

            this._ucHtmc            = new UcTextInput();
            this._ucHtmc.CName      = "合同名称";
            this._ucHtmc.AllowEmpty = false;
            this.controls.Add(this._ucHtmc);

            this._ucHtbh            = new UcTextInput();
            this._ucHtbh.CName      = "合同编号";
            this._ucHtbh.AllowEmpty = false;
            this.controls.Add(this._ucHtbh);

            this._ucJgly            = new UcCheckedInput("0,招标;1,比价或定向;2,参照招标价议价", "0");
            this._ucJgly.CName      = "价格来源";
            this._ucJgly.AllowEmpty = false;
            this.controls.Add(this._ucJgly);

            this._ucJtsp            = new UcCheckedInput("0,否;1,行管委;2,审监委", "");
            this._ucJtsp.CName      = "集团审批";
            this._ucJtsp.AllowEmpty = false;
            this.controls.Add(this._ucJtsp);

            this._ucFjxm            = new UcCheckedInput("1,合同文本草稿;2,合同价明细;3,图纸;4,中标通知书;5,中标单位确认单;6,投标文件;8,比价审批单;7,其他", "1");
            this._ucFjxm.CName      = "附件项目";
            this._ucFjxm.AllowEmpty = false;
            this.controls.Add(this._ucFjxm);

            this._ucHtje            = new UcNumInput();
            this._ucHtje.CName      = "合同金额";
            this._ucHtje.AllowEmpty = false;
            this.controls.Add(this._ucHtje);

            this._ucFkfs            = new UcTextInput();
            this._ucFkfs.CName      = "付款方式";
            this._ucFkfs.AllowEmpty = false;
            this.controls.Add(this._ucFkfs);

            this._ucHtqx            = new UcTextInput();
            this._ucHtqx.CName      = "合同期限";
            this._ucHtqx.AllowEmpty = false;
            this.controls.Add(this._ucHtqx);

            this._ucZytk            = new UcTextArea();
            this._ucZytk.CName      = "主要条款";
            this._ucZytk.AllowEmpty = true;
            this.controls.Add(this._ucZytk);

            this._ucBz            = new UcTextInput();
            this._ucBz.CName      = "备注";
            this._ucBz.AllowEmpty = true;
            this.controls.Add(this._ucBz);
        }