private void LoadNext() { this.PrepareDDsInfoMainNext(); var dds = ComDDSFactory.Get(this.DDsInfoMain, DDsMain_LoadingData, DDsMain_LoadedData); dds.Load(); }
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(); }
////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////// protected override void PrepareLoadSub() { this.PrepareDDsInfoSub(); var _DDs = ComDDSFactory.Get(this.DDsInfoSub, null, DDsSub_LoadedData); _DDs.Load(); }
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(); // }
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(); }
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(); }
///////////////////////////////////////////////////////////////////////////////////////////////////////// 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(); }
////////////////////////////////////////////////////////////////////////////////////////////////////////////// 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(); }
/////////////////////////////////////////////////////////////////////////////// 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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
////////////////////////////////////////////////////////////////////////////////////////////////////////////// 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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
/// <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(); }
/// <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(); }
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(); }
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(); }
///////////////////////////////////////////////////////////////////////////// private void LoadFunctionTree1() { var dds = ComDDSFactory.Get(ComDSFactory.Man, UDSMethods.V_S_FunctionTreeManList, dds_LoadedData); dds.Load(); }