private void AddSO() { // show SO window SpecialOrderWPF SO_WPF = new SpecialOrderWPF(); SO_WPF.Day_Number = this.DayNumber; //SO_WPF.Store = Globals.SelectedStore; if (AddSpecialOrderEvent != null) { AddSpecialOrderEvent(this, new DayInfoEventArg(SO_WPF)); } }
public bool UpdateSpecialOrder(int SO_ID, SpecialOrderWPF SO_WPF) { try { bool rtn = lck.UpdateSpecialOrder(SO_ID, SO_WPF.ToSpecialOrder()); return(rtn); } catch (Exception ex) { Log("UpdateSpecialOrder(int,SpecialOrderWPF) - Error msg:" + ex.Message); return(false); } }
public bool DeleteSpecialOrder(SpecialOrderWPF SO_WPF) { try { bool rtn = lck.DeleteSpecialOrder(SO_WPF.Id); return(rtn); } catch (Exception ex) { Log("DeleteSpecialOrder(SpecialOrderWPF) - Error msg:" + ex.Message); return(false); } }
public bool AddSpecialOrder(SpecialOrderWPF SO_WPF) { try { SO_WPF.LastModified = DateTime.Now; bool rtn = lck.AddSpecialOrder(SO_WPF.ToSpecialOrder()); return(rtn); } catch (Exception ex) { Log("AddSpecialOrder(SpecialOrderWPF) - Error msg:" + ex.Message); return(false); } }
public DayInfoEventArg(SpecialOrderWPF SO) { this.SpecialOrder_WPF = SO; }