private void AddPrice() { if (this.ViewErrList != null && this.ViewErrList.Value.Count > 0) { return; } if (string.IsNullOrEmpty(this.SKeyCode.Trim())) { return; } var model = new MSale_PriceTemplate_Lens_ProCost(); model = new MSale_PriceTemplate_Lens_ProCost() { CB = this.CB, ChB = this.ChB, CS = this.CS, F_Set = this.F_Set, InvTitle = this.InvTitle, JJ = this.JJ, JS = this.JS, JY = this.JY, KK = this.KK, OP = this.OP, PG = this.PG, PiH = this.PiH, RS = this.RS, SY = this.SY, UV = this.UV, ZK = this.ZK, ID = "", LensCode = this.SKeyCode, P1 = this.P1, P2 = this.P2 }; DSSale_PriceTemplate_Lens_ProCost _DS = new DSSale_PriceTemplate_Lens_ProCost(); this.IsBusy = true; _DS.AddProCost(USysInfo.DBCode, USysInfo.LgIndex, model, geted => { this.IsBusy = false; if (geted.HasError) { MessageErp.ErrorMessage(geted.Error.Message.GetErrMsg()); geted.MarkErrorAsHandled(); return; } this.Search(); }, null); }
private void CopyPrice() { DSSale_PriceTemplate_Lens_ProCost _DS = new DSSale_PriceTemplate_Lens_ProCost(); this.IsBusy = true; _DS.CopyProCost(USysInfo.DBCode, USysInfo.LgIndex, this.LensCodeCopy, this.SKeyCode, geted => { this.IsBusy = false; if (geted.HasError) { MessageErp.ErrorMessage(geted.Error.Message.GetErrMsg()); geted.MarkErrorAsHandled(); return; } this.Search(); }, null); }
private void EditPrice() { DSSale_PriceTemplate_Lens_ProCost _DS = new DSSale_PriceTemplate_Lens_ProCost(); this.IsBusy = true; _DS.EditProCost(USysInfo.DBCode, USysInfo.LgIndex, this.GridListSelectedCodes, P1, P2, geted => { this.IsBusy = false; if (geted.HasError) { MessageErp.ErrorMessage(geted.Error.Message.GetErrMsg()); geted.MarkErrorAsHandled(); return; } this.Search(); }, null); }