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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }