protected override async Task callAction(HsActionKey actionKey, HsLabelValue item) { if (actionKey == SysActionKeys.UserDo1) //查看原始单据 { this.onOpenDJ(item, true); } else if (actionKey == SysActionKeys.UserDo2) //查看流程步骤 { await Navigation.PushAsync(new Form_HsLcspjl_Show(item)); } else if (actionKey == SysActionKeys.UserDo3) //审批 { Panel_HsLcspjl panel = new Panel_HsLcspjl(item); panel.UpdateComplete += new EventHandler <HsEventArgs <object> >(async(sender, e) => { try { await this.callRetrieve(false); } catch (Exception ex) { this.ShowError(ex.Message); } }); await Navigation.PushAsync(panel); } else { await base.callAction(actionKey, item); } }
protected void onOpenDJ(HsLabelValue item, bool auditOnly) { this.OpenDJ?.Invoke(this, new HsEventArgs <HsLabelValue, bool>() { Data = item, Data2 = auditOnly }); }
protected override IList <MenuItem> onCreateContextMenuItems(HsLabelValue item) { IList <MenuItem> items = base.onCreateContextMenuItems(item); if (item.GetValueByLabel("Jlzt") == "0") { items.Add(new MenuItem() { Text = "提交", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo1.SetLabel("提交"), item) }); items.Add(new MenuItem() { Text = "删除", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.除, item), IsDestructive = true }); } else { items.Add(new MenuItem() { Text = "取消提交", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo2.SetLabel("取消提交"), item) }); } return(items); }
public Panel_JbCgspd(HsLabelValue item = null) : base(item) { this.PP = new PageParams() { detailTitle = "采购明细" }; }
protected override IList <MenuItem> onCreateContextMenuItems(HsLabelValue item) { IList <MenuItem> items = base.onCreateContextMenuItems(item); items.Add(new MenuItem() { Text = "原始单据", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo1, item) }); items.Add(new MenuItem() { Text = "查看步骤", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo2, item) }); if (item.GetValueByLabel("Jlzt") == "0") { items.Add(new MenuItem() { Text = "审批", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo3, item), IsDestructive = true }); } return(items); }
protected override async Task modifyItem(HsLabelValue item) { Panel_JbCgspdDetail panel = new Panel_JbCgspdDetail(item) { AuditOnly = !AllowEdit }; panel.UpdateComplete += new EventHandler <Framework.Events.HsEventArgs <object> >((sender, e) => { try { HsLabelValue data = e.Data as HsLabelValue; if (data != null) { datas.Add(createLabelAndValue(data)); } } catch (Exception ex) { this.ShowError(ex.Message); } }); await Navigation.PushAsync(panel); }
protected override IList <MenuItem> onCreateContextMenuItems(HsLabelValue item) { IList <MenuItem> items = base.onCreateContextMenuItems(item); if (item.GetValueByLabel("Xmzt") == "0") { items.Add(new MenuItem() { Text = "跟进", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo1.SetLabel("跟进"), item), }); } else { items.Add(new MenuItem() { Text = "取消跟进", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo2.SetLabel("取消跟进"), item), }); } return(items); }
protected override void setData(HsLabelValue data) { this.uniqueId = data.GetValueByLabel("LxrId"); _ucName.ControlValue = data.GetValueByLabel("Name"); _ucZwzc.ControlValue = data.GetValueByLabel("Zwzc"); _ucSex.ControlValue = data.GetValueByLabel("Sex"); _ucBirthday.ControlValue = data.GetValueByLabel("Birthday"); _ucPhone.ControlValue = data.GetValueByLabel("Phone"); _ucPhone2.ControlValue = data.GetValueByLabel("Phone2"); _ucEmail.ControlValue = data.GetValueByLabel("Email"); _ucQQ.ControlValue = data.GetValueByLabel("QQ"); _ucWe.ControlValue = data.GetValueByLabel("We"); _ucHobby.ControlValue = data.GetValueByLabel("Hobby"); _ucBz.ControlValue = data.GetValueByLabel("Bz"); }
protected async override Task modifyItem(HsLabelValue item) { Panel_Sdrdxm panel = new Panel_Sdrdxm(item); if (item.GetValueByLabel("Xmzt") == "0" && item.GetValueByLabel("Zdr") == GetLoginData().Username) { panel.UpdateComplete += new EventHandler <HsEventArgs <object> >(async(sender, e) => { try { await this.callRetrieve(false); } catch (Exception ex) { this.ShowError(ex.Message); } }); } else { panel.AuditOnly = true; } await Navigation.PushAsync(panel); }
public Panel_JbBjdxpsb(HsLabelValue item = null) : base(item) { this.PP = new PageParams() { detailTitle = "报价记录" }; }
protected override IList <MenuItem> onCreateContextMenuItems(HsLabelValue item) { IList <MenuItem> items = base.onCreateContextMenuItems(item); string htzt = item.GetValueByLabel("Htzt"); if (htzt == "0") { items.Add(new MenuItem() { Text = "删除", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.除, item), IsDestructive = true }); } else { items.Add(new MenuItem() { Text = "回款记录", Command = this, CommandParameter = new HsCommandParams(SysActionKeys.UserDo3, item) }); } return(items); }
public Form_Sdrdhthkjl_Query2(HsLabelValue ht) : base() { this._ht = ht; this.ucBeginDate = null; this.ucEndDate = null; this.ucUserSwitcher = null; }
protected override void setData(HsLabelValue data) { this.uniqueId = data.GetValueByLabel("KhId"); this._ucKhmc.ControlValue = data.GetValueByLabel("Khmc"); this._ucDz.ControlValue = data.GetValueByLabel("Dz"); this._ucYzbm.ControlValue = data.GetValueByLabel("Yzbm"); this._ucBz.ControlValue = data.GetValueByLabel("Bz"); }
protected override async Task modifyItem(HsLabelValue item) { Panel_HsLcspjl panel = new Panel_HsLcspjl(item) { AuditOnly = true }; await Navigation.PushAsync(panel); }
protected async override Task modifyItem(HsLabelValue item) { Panel_JbCgspd panel = new Panel_JbCgspd(item) { AuditOnly = true }; await Navigation.PushAsync(panel); }
protected override void setData(HsLabelValue data) { this.uniqueId = data.GetValueByLabel("JlId"); this._ucHt.ControlValue = data.GetValueByLabel("HtId") + "," + data.GetValueByLabel("Htmc"); this._ucHt.AllowEdit = false; this._ucJlrq.ControlValue = data.GetValueByLabel("Jlrq"); this._ucHksm.ControlValue = data.GetValueByLabel("Hksm"); this._ucHkje.ControlValue = data.GetValueByLabel("Hkje"); this._ucBz.ControlValue = data.GetValueByLabel("Bz"); }
public Panel_HsLcspjl(HsLabelValue lcspjl) : base(lcspjl) { //通过模版Id判断流程类型 this._lcStyle = lcspjl.GetValueByLabel("MbId") != "0" ? ELcStyle.固定流程 : ELcStyle.自由流程; this.PP = new PageParams() { ImageTitle = "审批图片", detailTitle = "审批附件" }; }
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 async Task callAction(HsActionKey actionKey, HsLabelValue item) { if (actionKey == SysActionKeys.UserDo1) { await Navigation.PushAsync(new Form_Sdrdlxr_Operation(item)); } else { await base.callAction(actionKey, item); } }
protected override HsLabelValue createLabelAndValue(HsLabelValue item) { string mc = item.GetValueByLabel("Mc"); string sl = item.GetValueByLabel("Sl"); item.Label = mc; item.Value = sl; return(item); }
protected override void setData(HsLabelValue data) { this._ucMc.ControlValue = data.GetValueByLabel("Mc"); this._ucXh.ControlValue = data.GetValueByLabel("Xh"); this._ucKcsl.ControlValue = data.GetValueByLabel("Kcsl"); this._ucSl.ControlValue = data.GetValueByLabel("Sl"); this._ucDj.ControlValue = data.GetValueByLabel("Dj"); this._ucJe.ControlValue = data.GetValueByLabel("Je"); this._ucYq.ControlValue = data.GetValueByLabel("Yq"); this._ucBz.ControlValue = data.GetValueByLabel("Bz"); }
protected override void setData(HsLabelValue data) { this.uniqueId = data.GetValueByLabel("DjId"); this._ucDjrq.ControlValue = data.GetValueByLabel("Djrq"); this._ucDjrq.AllowEdit = false; this._uCgbt.ControlValue = data.GetValueByLabel("Cgbt"); this._ucSfjj.ControlValue = data.GetValueByLabel("Sfjj"); this._ucCgyy.ControlValue = data.GetValueByLabel("Cgyy"); this._ucBz.ControlValue = data.GetValueByLabel("Bz"); this._ucDetail.ControlValue = data.GetValueByLabel("StrMx"); }
protected async Task <string> callRemoteDoData(HsLabelValue item, string actionFlag) { if (string.IsNullOrWhiteSpace(uniqueIdField)) { throw new HsException("未定义uniqueIdField"); } XElement xbhs = new XElement("Data", new XElement("Bh", item.GetValueByLabel(uniqueIdField))); return(await GetWSUtil().DoDatas(GetLoginData().ProgressId, xbhs.ToString(SaveOptions.DisableFormatting), actionFlag)); }
protected override async Task callAction(HsActionKey actionKey, HsLabelValue item) { if (actionKey == SysActionKeys.刷新) { await callRetrieve(true); } else { await base.callAction(actionKey, item); } }
protected virtual async Task callAction(HsActionKey actionKey, HsLabelValue item) { if (actionKey == SysActionKeys.新建) { await callNew(); } else { await callDoData(actionKey, item); } }
protected override void setData(HsLabelValue data) { this._ucWlmc.ControlValue = data.GetValueByLabel("Wlmc"); this._ucBjdw.ControlValue = data.GetValueByLabel("Bjdw"); this._ucGgxh.ControlValue = data.GetValueByLabel("Ggxh"); this._ucSl.ControlValue = data.GetValueByLabel("Sl"); this._ucDj.ControlValue = data.GetValueByLabel("Dj"); this._ucJe.ControlValue = data.GetValueByLabel("Je"); this._ucLxfs.ControlValue = data.GetValueByLabel("Lxfs"); this._ucBz.ControlValue = data.GetValueByLabel("Bz"); }
protected override HsLabelValue createLabelAndValue(HsLabelValue item) { string bjdw = item.GetValueByLabel("Bjdw"); string je = item.GetValueByLabel("Je"); item.Label = bjdw; item.Value = je; return(item); }
protected override async Task <string> doDataItem(HsActionKey actionKey, HsLabelValue item) { if (actionKey == SysActionKeys.除) { return(await this.callRemoteDoData(item, "Delete_Kh")); } else { return(await base.doDataItem(actionKey, item)); } }
protected override async Task <string> doDataItem(HsActionKey actionKey, HsLabelValue item) { if (actionKey == SysActionKeys.除) { this.datas.Remove(item); return(""); } else { return(await base.doDataItem(actionKey, item)); } }
protected override async Task callAction(HsActionKey actionKey, HsLabelValue item) { if (actionKey == HsOAActionKeys.查看流程审批记录) //查看审批记录 { Form_HsLcspjl_Show form = new Form_HsLcspjl_Show(item.GetValueByLabel("Djlx"), item.GetValueByLabel("DjId")); await Navigation.PushAsync(form); } else { await base.callAction(actionKey, item); } }