/// <summary> /// تایید وضعیت چاپ فیش /// </summary> /// <param name="salefood"></param> void IsPrintFish(SaleFoodOnline salefood) { SaleFoodOnline fact = ServicesSaleFood.GetSalefood(salefood.SaleFoodIDFact.Value); fact.PrintState = true; ServicesSaleFood.UpdateSaleFoodOnline(fact); }
/// <summary> /// دریافت اطلاعات سطر مورد نظر /// </summary> /// <returns></returns> SaleFoodOnline GetRow() { Int64 id = grd.GetFocusedRowCellValue(colSaleFoodIDFact).ToLong(); SaleFoodReport salefood = _liSaleOnline.Where(c => c.SaleFoodIDFact == id).SingleOrDefault(); if (salefood != null) { List <SaleFoodOnlineDetaile> saleDetailes = ServicesSaleFood.GetDetailesByIDF(id); salefood.FoodDetailes = saleDetailes; } return(salefood); }
public frmOnlineSale() { InitializeComponent(); ConnectionDB._conectionString = ConfigurationManager.ConnectionStrings["ConnectionDB"].ConnectionString.ToString(); if (!GetSetting()) { XtraMessageBox.Show("امکان اجرای برنامه وجود نداره ابتدا تنظیمات پرینتر کاربر مدیر را وارد نمایید", "توجه", MessageBoxButtons.OK); this.Close(); return; } settingServer = ServicesSaleFood.GetSettingServer(); }
bool GetSetting() { bool result = false; _SettingPrinter = ServicesSaleFood.GetSettingPrinter(); if (_SettingPrinter == null) { return(false); } if (!string.IsNullOrEmpty(_SettingPrinter.PrinterAshpazkhane)) { result = true; } return(result); }