コード例 #1
0
        private void TrimClick_Extend(object sender, UIActionEventArgs e)
        {
            if (this.CurrentModel.SysnergyView.FocusedRecord == null)
            {
                return;
            }
            List <long> listid = new List <long>();

            foreach (SysnergyLineViewRecord dr in this.CurrentModel.SysnergyLineView.SelectRecords)
            {
                listid.Add(long.Parse(dr["BillNoItem"].ToString()));
            }
            long Org = this.CurrentModel.SysnergyView.FocusedRecord.DocOrg;

            UFIDA.U9.Cust.GS.FT.SynergySplitBP.Proxy.SynergySplitProxy proxy = new SynergySplitBP.Proxy.SynergySplitProxy();
            proxy.DocOrg         = Org;
            proxy.ID             = listid;
            proxy.SrcDocTypeEnum = 1;
            proxy.Do();
            this.NavigateAction.Refresh(null);


            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.
            this.TrimClick_DefaultImpl(sender, e);
        }
コード例 #2
0
        private void ResolutionClick_Extend(object sender, UIActionEventArgs e)
        {
            if (this.CurrentModel.SysnergyView.FocusedRecord == null)
            {
                return;
            }
            List <long> listid = new List <long>();

            foreach (SysnergyLineViewRecord dr in this.CurrentModel.SysnergyLineView.SelectRecords)
            {
                listid.Add(dr.BillNoItem.Value);
            }
            if (listid != null && listid.Count > 0)
            {
                UFIDA.U9.Cust.GS.FT.SynergySplitBP.Proxy.SynergySplitProxy proxy = new SynergySplitBP.Proxy.SynergySplitProxy();
                proxy.ID             = listid;
                proxy.SrcDocTypeEnum = 0;
                proxy.Do();
                this.NavigateAction.Refresh(null);
            }
            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.
            this.ResolutionClick_DefaultImpl(sender, e);
        }