Ejemplo n.º 1
0
        private void LoadNext()
        {
            this.PrepareDDsInfoMainNext();
            var dds = ComDDSFactory.Get(this.DDsInfoMain, DDsMain_LoadingData, DDsMain_LoadedData);

            dds.Load();
        }
Ejemplo n.º 2
0
        private void LoadDeliveryListByDN()
        {
            if (string.IsNullOrEmpty(this.DN))
            {
                return;
            }

            try
            {
                var _DC = this.DContextList as IEnumerable <Entity>;
                if (_DC != null)
                {
                    if (_DC.Where(it => ((V_Sale_Delivery_Lens)it).DN.MyStr() == this.DN.MyStr()).Count() > 0)
                    {
                        return;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageErp.ErrorMessage(ex.Message);
                return;
            }
            //
            var dds_LoadDeliveryListByDN = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_Sale_Delivery_LensListQuery", dds_LoadDeliveryListByDN_LoadedData, true);

            dds_LoadDeliveryListByDN.QueryParameters.Add(new Parameter()
            {
                ParameterName = "sWhere", Value = USptstr.Str1 + "DN_Scan" + USptstr.Str2 + this.DN
            });
            dds_LoadDeliveryListByDN.Load();
        }
Ejemplo n.º 3
0
        //////////////////////////////////////////////////////////////
        //////////////////////////////////////////////////////////////////////////////////////////////////////////
        protected override void PrepareLoadSub()
        {
            this.PrepareDDsInfoSub();
            var _DDs = ComDDSFactory.Get(this.DDsInfoSub, null, DDsSub_LoadedData);

            _DDs.Load();
        }
Ejemplo n.º 4
0
        private void XYLoad()
        {
            var _LensCodeInput = this.DContextMain.LensCode.MyStr();

            if (string.IsNullOrEmpty(_LensCodeInput))
            {
                return;
            }
            //this.IsShowWhCode = Visibility.Collapsed;
            //this.IsShowLR = Visibility.Collapsed;
            this.CYL = "CYL";
            //var _Rs = ComHelpLensCode.UHV_B_Material_LensSmart.Where(item => item.LensCode.ToUpper().Trim() == _LensCodeInput).FirstOrDefault();
            //if (_Rs == null)
            //{
            //    XYSource.Clear();
            //    return;
            //}

            var dds = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_B_Material_LensSmartXYTableQuery", dds_LoadedData, true);

            dds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "lensCode", Value = _LensCodeInput
            });
            this.IsBusyCW = true;
            dds.Load();
            //
        }
Ejemplo n.º 5
0
        private void LoadLensPrice()
        {
            this.InitDDs();
            var dds = ComDDSFactory.Get(DDsInfoListLensPrice, DDsList_LoadingData, DDsList_LoadedData);

            DContextListB_Lens_Price = null;
            DContextListB_Lens_Price = dds.Data;
            dds.Load();
        }
Ejemplo n.º 6
0
        public static void Read()
        {
            var dds = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_FunctionRightList, dds_LoadedData);

            dds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "gpID", Value = USysInfo.F_Manager ? -99 : USysInfo.GpID
            });
            dds.Load();
        }
Ejemplo n.º 7
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////

        protected virtual void PrepareLoadMain()
        {
            this.flag_Next     = false;
            this.flag_Previous = false;
            this.PrepareDDsInfoMain();
            var dds = ComDDSFactory.Get(this.DDsInfoMain, DDsMain_LoadingData, DDsMain_LoadedData);

            this.OnLoadMainBegin();
            dds.Load();
        }
Ejemplo n.º 8
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////
        private void PrepareLoadList2()
        {
            this.PrepareDDsInfoList2();
            var dds = ComDDSFactory.Get(this.DDsInfoList2, DDsList_LoadingData2, DDsList_LoadedData2);

            this.DContextList2 = null;
            this.DContextList2 = dds.Data;
            this.OnLoadMainBegin2();
            dds.Load();
        }
Ejemplo n.º 9
0
        ///////////////////////////////////////////////////////////////////////////////
        private void LoadFunctionTree0()
        {
            var dds = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_FunctionTreeErpList, dds_LoadedData);

            dds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "gpID", Value = USysInfo.F_Manager ? -99 : USysInfo.GpID
            });
            dds.Load();
        }
Ejemplo n.º 10
0
        private void GetSONewSub()
        {
            var _DDsSaleSub = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_Sale_Order_PDDetailList", _DDsSaleSub_LoadedData, true);

            _DDsSaleSub.QueryParameters.Add(new System.Windows.Controls.Parameter()
            {
                ParameterName = "iD", Value = _IDSale
            });
            _DDsSaleSub.Load();
        }
Ejemplo n.º 11
0
        private void GetCusCodeByGpCode()
        {
            var _DDs = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_B_CustomerRightBrowseGpCode", ReSetSelectCodes, true);

            _DDs.QueryParameters.Add(new Parameter()
            {
                ParameterName = "gpCode", Value = this._GpCode
            });
            this.IsBusy = true;
            _DDs.Load();
        }
Ejemplo n.º 12
0
        protected override void OnLoadMainEnd()
        {
            var ds = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_User_GroupDataBaseBillByGroupCode, ReSetSelectCodes);

            ds.QueryParameters.Add(new Parameter()
            {
                ParameterName = "groupCode", Value = this._groupCode
            });
            this.IsBusy = true;
            ds.Load();
        }
Ejemplo n.º 13
0
        protected override void OnLoadMainEnd()
        {
            var ds = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_Sale_ContractBill_Sub_CusCodeQuery", ReSetCusCode);

            ds.FilterDescriptors.Add(new FilterDescriptor()
            {
                PropertyPath = "ContractCode", Value = this._billcode
            });
            this.IsBusy = true;
            ds.Load();
        }
Ejemplo n.º 14
0
        private void NoticeForRepeat()
        {
            if (string.IsNullOrEmpty(this.OBCode) || _NoticeCount != 0 || !string.IsNullOrEmpty(this.BCode))
                return;

            var dds = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_Sale_Order_LensListQuery", dds_LoadedData, true);
            string _SWhere = USptstr.Str1 + "OBCode" + USptstr.Str2 + this.OBCode;
            dds.QueryParameters.Add(new Parameter() { ParameterName = "sWhere", Value = _SWhere });
            dds.FilterDescriptors.Add(new FilterDescriptor() { PropertyPath = "OBCode", Value = this.OBCode, Operator = FilterOperator.IsEqualTo, IsCaseSensitive = false });
            dds.Load();
        }
Ejemplo n.º 15
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////
        protected override void PrepareLoadList()
        {
            this.OnPrepareDDsInfoListBegin();
            this.PrepareDDsInfoList();
            var dds = ComDDSFactory.Get(this.DDsInfoList, DDsList_LoadingData, DDsList_LoadedData);

            this.DContextList = null;
            this.DContextList = dds.Data;
            this.OnLoadMainBegin();
            dds.Load();
        }
Ejemplo n.º 16
0
        private void NewSO()
        {
            this.New();
            var _DDsSaleMain = ComDDSFactory.Get(ComDSFactory.Erp, "GetV_Ware_Bill_SO_Pending_PDBill", _DDsSaleMain_LoadedData, true);

            _DDsSaleMain.QueryParameters.Add(new System.Windows.Controls.Parameter()
            {
                ParameterName = "iD", Value = _IDSale
            });
            _DDsSaleMain.Load();
        }
Ejemplo n.º 17
0
        private void GetUserInfo()
        {
            var dds             = ComDDSFactory.Get(ComDSFactory.Man, "GetV_S_UserQuery", dds_LoadedData);
            FilterDescriptor fd = new FilterDescriptor()
            {
                PropertyPath = "UserCode", Operator = FilterOperator.IsEqualTo, Value = USysInfo.UserCode
            };

            dds.FilterDescriptors.Add(fd);
            dds.Load();
        }
Ejemplo n.º 18
0
        private void GetGroupByDBCodeList()
        {
            var _DDs = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_UserGroupByDBCodeList, ReSetSelectCodes);

            _DDs.QueryParameters.Add(new Parameter()
            {
                ParameterName = "dbCode", Value = this._dbCode
            });
            this.IsBusy = true;
            _DDs.Load();
        }
Ejemplo n.º 19
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();
        }
Ejemplo n.º 20
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();
        }
Ejemplo n.º 21
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();
        }
Ejemplo n.º 22
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();
        }
Ejemplo n.º 23
0
        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();
        }
Ejemplo n.º 24
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();
        }
Ejemplo n.º 25
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();
        }
Ejemplo n.º 26
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();
        }
Ejemplo n.º 27
0
        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();
        }
Ejemplo n.º 28
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();
        }
Ejemplo n.º 29
0
        /////////////////////////////////////////////////////////////////////////////
        private void LoadFunctionTree1()
        {
            var dds = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_FunctionTreeManList, dds_LoadedData);

            dds.Load();
        }