Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 protected void onOpenDJ(HsLabelValue item, bool auditOnly)
 {
     this.OpenDJ?.Invoke(this, new HsEventArgs <HsLabelValue, bool>()
     {
         Data = item, Data2 = auditOnly
     });
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public Panel_JbCgspd(HsLabelValue item = null) : base(item)
 {
     this.PP = new PageParams()
     {
         detailTitle = "采购明细"
     };
 }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
            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);
            }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
        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");
        }
Exemplo n.º 9
0
        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);
        }
Exemplo n.º 10
0
 public Panel_JbBjdxpsb(HsLabelValue item = null) : base(item)
 {
     this.PP = new PageParams()
     {
         detailTitle = "报价记录"
     };
 }
Exemplo n.º 11
0
        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);
        }
Exemplo n.º 12
0
        public Form_Sdrdhthkjl_Query2(HsLabelValue ht) : base()
        {
            this._ht = ht;

            this.ucBeginDate    = null;
            this.ucEndDate      = null;
            this.ucUserSwitcher = null;
        }
Exemplo n.º 13
0
 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");
 }
Exemplo n.º 14
0
        protected override async Task modifyItem(HsLabelValue item)
        {
            Panel_HsLcspjl panel = new Panel_HsLcspjl(item)
            {
                AuditOnly = true
            };

            await Navigation.PushAsync(panel);
        }
Exemplo n.º 15
0
        protected async override Task modifyItem(HsLabelValue item)
        {
            Panel_JbCgspd panel = new Panel_JbCgspd(item)
            {
                AuditOnly = true
            };

            await Navigation.PushAsync(panel);
        }
Exemplo n.º 16
0
 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");
 }
Exemplo n.º 17
0
        public Panel_HsLcspjl(HsLabelValue lcspjl) : base(lcspjl)
        {
            //通过模版Id判断流程类型
            this._lcStyle = lcspjl.GetValueByLabel("MbId") != "0" ? ELcStyle.固定流程 : ELcStyle.自由流程;

            this.PP = new PageParams()
            {
                ImageTitle = "审批图片", detailTitle = "审批附件"
            };
        }
Exemplo n.º 18
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);
        }
Exemplo n.º 19
0
 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);
     }
 }
Exemplo n.º 20
0
            protected override HsLabelValue createLabelAndValue(HsLabelValue item)
            {
                string mc = item.GetValueByLabel("Mc");

                string sl = item.GetValueByLabel("Sl");

                item.Label = mc;
                item.Value = sl;

                return(item);
            }
Exemplo n.º 21
0
 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");
 }
Exemplo n.º 22
0
 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");
 }
Exemplo n.º 23
0
        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));
        }
Exemplo n.º 24
0
 protected override async Task callAction(HsActionKey actionKey, HsLabelValue item)
 {
     if (actionKey == SysActionKeys.刷新)
     {
         await callRetrieve(true);
     }
     else
     {
         await base.callAction(actionKey, item);
     }
 }
Exemplo n.º 25
0
 protected virtual async Task callAction(HsActionKey actionKey, HsLabelValue item)
 {
     if (actionKey == SysActionKeys.新建)
     {
         await callNew();
     }
     else
     {
         await callDoData(actionKey, item);
     }
 }
Exemplo n.º 26
0
 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");
 }
Exemplo n.º 27
0
            protected override HsLabelValue createLabelAndValue(HsLabelValue item)
            {
                string bjdw = item.GetValueByLabel("Bjdw");

                string je = item.GetValueByLabel("Je");

                item.Label = bjdw;
                item.Value = je;

                return(item);
            }
Exemplo n.º 28
0
 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));
     }
 }
Exemplo n.º 29
0
 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));
     }
 }
Exemplo n.º 30
0
        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);
            }
        }