Esempio n. 1
0
        protected override void OnLoadMainEnd()
        {
            var ds = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_B_Supplier_Default_LensListQuery", ReSetLensCode, true);
            var _W = USptstr.Str1 + "SpCode" + USptstr.Str2 + this.SpCode.MyStr();

            ds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "sWhere", Value = _W
            });
            this.IsBusy = true;
            ds.Load();
        }
Esempio n. 2
0
        private void LoadDetail()
        {
            var _DDS = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_Ware_Report_Stocks_Lens_DetailList", _DDS_LoadedData, true);
            var _Str = USptstr.Str1 + "F_LoadXY" + USptstr.Str2 + this.WhCodeSelected + this.LensCodeSelected + this.F_LR;

            _DDS.QueryParameters.Add(new Parameter()
            {
                ParameterName = "sWhere", Value = _Str
            });
            this.IsBusy = true;
            _DDS.Load();
        }
Esempio n. 3
0
        protected override void OnLoadMainEnd()
        {
            var ds = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_Sale_PriceContract_CusGroup_CusCodeListQuery", ReSetCusCode, true);
            var _W = USptstr.Str1 + "GpCode" + USptstr.Str2 + this.GpCode.MyStr();

            ds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "sWhere", Value = _W
            });
            this.IsBusy = true;
            ds.Load();
        }
Esempio n. 4
0
        partial void OnPCodeChanged()
        {
            if (this.EditState != 1)
            {
                return;
            }
            //V_B_Material_Lens it = null;
            var _DDs = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_B_Material_Lens_GeneralBillQuery", dds_LoadedData, true);

            _DDs.QueryParameters.Add(new Parameter()
            {
                ParameterName = "lensCode", Value = this.PCode
            });
            _DDs.Load();
        }
        private void LoadTreeView()
        {
            this.SourceTree.Clear();
            this.SourceTree.Add(new V_S_Function()
            {
                FunNameUI = ErpUIText.Get("ERP_Loading")
            });
            var ddsInfo = new ComDDsInfo()
            {
                Domaincontext = ComDSFactory.Man, QueryName = UDSMethods.V_S_FunctionTreeList, PageSize = 0
            };
            var dds = ComDDSFactory.Get(ddsInfo, null, ddsTreeView_LoadedData);

            this.IsBusy = true;
            dds.Load();
        }
Esempio n. 6
0
        /// <summary>
        /// //////////////////验证用户
        /// </summary>
        /// <returns></returns>
        ///
        private void VerifyUser()
        {
            this.DDsInfoMain = new ComDDsInfo()
            {
                Domaincontext = ComDSFactory.Man,
                QueryName     = UDSMethods.V_S_UserBill
            };
            DDsInfoMain.Parameters.Add(new ComParameters()
            {
                ParameterName = "userCode", Value = DSource.UserCode.MyStr()
            });
            var dds = ComDDSFactory.Get(DDsInfoMain, null, dds_LoadedData);

            this.IsBusy = true;
            dds.Load();
        }
Esempio n. 7
0
        /// <summary>
        /// /////////////普通登陆//////////
        /// </summary>
        private void Login0()
        {
            var ddsInfo = new ComDDsInfo()
            {
                Domaincontext = ComDSFactory.Man,
                QueryName     = UDSMethods.V_S_User_GroupDataBaseBill,
                PageSize      = 0
            };

            ddsInfo.Parameters.Add(new ComParameters()
            {
                ParameterName = "userCode", Value = USysInfo.UserCode
            });
            var dds = ComDDSFactory.Get(ddsInfo, null, dds_LoadedData);

            this.IsBusy = true;
            dds.Load();
        }
Esempio n. 8
0
        protected override void GridSelectedItemChanged(System.ServiceModel.DomainServices.Client.Entity item)
        {
            if (item == null)
            {
                return;
            }
            var it = item as V_B_Customer_Acc;

            this.AccCusCode = it.AccCusCode;
            this.AccCusName = it.AccCusName;
            var ds = ComDDSFactory.Get(ComDSFactory.Erp, UDSMethods.V_B_Customer_Acc_CusIncludeListByAccCusCode, ReSetSelectCodes);

            ds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "accCusCode", Value = this.AccCusCode
            });
            this.IsBusyList2 = true;
            ds.Load();
        }
        private void ddsTreeView_LoadedData(object sender, LoadedDataEventArgs geted)
        {
            this.IsBusy = false;

            if (geted.HasError)
            {
                MessageErp.ErrorMessage(geted.Error.Message.GetErrMsg());
                geted.MarkErrorAsHandled();
                return;
            }

            var items = geted.Entities;

            this.SourceTree.Clear();
            V_S_Function it;

            items.ToList().ForEach(item =>
            {
                if (!string.IsNullOrEmpty(((V_S_Function)item).FunParentID))
                {
                    return;
                }
                it = new V_S_Function();
                ComCopyProperties.Copy(it, item);
                it.I_Explan = true;
                it.Children = GetChild(items, ((V_S_Function)item).FunID);
                this.SourceTree.Add(it);
            });
            ////////////////////////////////////////////
            var ddsInfo = new ComDDsInfo()
            {
                Domaincontext = ComDSFactory.Man, QueryName = UDSMethods.V_S_FunctionAuthorityList, PageSize = 0
            };

            ddsInfo.Parameters.Add(new ComParameters()
            {
                ParameterName = "groupID", Value = this._gID
            });
            var dds = ComDDSFactory.Get(ddsInfo, null, ddsAuthorityTree_LoadedData);

            this.IsBusy = true;
            dds.Load();
        }
Esempio n. 10
0
        protected override void GridSelectedItemChanged(System.ServiceModel.DomainServices.Client.Entity item)
        {
            if (item == null)
            {
                return;
            }
            var it = item as V_S_UserGroup;

            this.GpID   = it.GpID;
            this.GpCode = it.GpCode;
            this.GpName = it.GpName;
            var ds = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_User_GroupIncludeListByGpCode, ReSetSelectCodes);

            ds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "gpCode", Value = this.GpCode
            });
            this.IsBusyList2 = true;
            ds.Load();
        }
Esempio n. 11
0
        /////////////////////////////////////////////////////////////////////////////
        private void LoadFunctionTree1()
        {
            var dds = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_FunctionTreeManList, dds_LoadedData);

            dds.Load();
        }