private static void CloseCheck(OrderToGo o) { /* * if (o.OrderStatus != OrderStatus.Sent) * { * * return; * } */ o.Closed = true; o.OrderStatus = OrderStatus.Closed; var p = o.PaymentType; o.NeedPrintFR = p.FRSend > 0; //o.NeedPrintPrecheck = p.FiskalId == 0; o.IsSHSent = true; /* * string err = ""; * var CreateSHres = SH.SHWrapper.CreateSalesInvoiceSync(o, out err); * if (!CreateSHres) * { * UI.UIModify.ShowAlert($"{err + Environment.NewLine} Накладная будет создана при появлении связи со StoreHouse"); * } */ DBProvider.UpdateOrderToGo(o); }
internal static bool DoAuthorization(string login, string password) { User user; string errorMsg = ""; bool res = DBProvider.LoginUser(login, password, out user, errorMsg); if (res) { CurentUser = user; UserFuncs = DBProvider.GetUserFuncs(user.Id); } return(res); }
private static void CloseCheck(OrderFlight o) { if (o.OrderStatus != OrderStatus.Sent) { return; } o.Closed = true; o.OrderStatus = OrderStatus.Closed; var p = o.AirCompany.PaymentType; o.NeedPrintFR = p.FiskalId > 0; o.NeedPrintPrecheck = p.FiskalId == 0; DBProvider.UpdateOrderFlight(o); }
internal static bool ChangePassCurentUsr(string login, string password) { return(DBProvider.ChangePass(CurentUser, password)); }