Ejemplo n.º 1
0
        public WriteOffSetup(WriteOffProducts writeOffProducts, Widthcolumn setting)
        {
            InitializeComponent();

            ColumnWidthSetting = setting;

            WriteOffProducts = writeOffProducts;
            writeOffItems    = WriteOffProducts.writeOffItems;

            dateTimePicker_WriteOfffDate.Value = DateTime.Parse(WriteOffProducts.DateWriteOff);
            textBox_MasterName.Text            = WriteOffProducts.MasterName;

            foreach (WriteOffItem writeOffItem in writeOffItems)
            {
                ListViewItem item = new ListViewItem(writeOffItem.Product.Name);
                item.SubItems.Add(writeOffItem.ToString());
                item.Tag = writeOffItem;

                listView_WriteOffItem.Items.Add(item);
            }
        }
Ejemplo n.º 2
0
        public PurchaseSetup(Order order, Widthcolumn setting)
        {
            ColumnWidthSetting = setting;

            InitializeComponent();

            Order = order;

            dateTimePicker_Pay.Value = DateTime.Parse(Order.PayDate);
            if (Order.Received != "")
            {
                dateTimePicker_Received.Value = DateTime.Parse(Order.Received);
            }

            orderItems = Order.orderItems;
            foreach (OrderItem orderItem in orderItems)
            {
                ListViewItem item = new ListViewItem(orderItem.Product.Name);
                item.SubItems.Add(orderItem.Count.ToString());
                item.Tag = orderItem;

                listView_Orders.Items.Add(item);
            }
        }
Ejemplo n.º 3
0
        public MainMenu()
        {
            InitializeComponent();

            Setting = ColumnWidthSetting;
        }
Ejemplo n.º 4
0
        public WriteOff(Widthcolumn setting)
        {
            InitializeComponent();

            ColumnWidthSetting = setting;
        }
Ejemplo n.º 5
0
        public PurchaseSetup(Widthcolumn setting)
        {
            InitializeComponent();

            ColumnWidthSetting = setting;
        }
Ejemplo n.º 6
0
        public Goods(Widthcolumn setting)
        {
            InitializeComponent();

            ColumnWidthSetting = setting;
        }
        public Leftovers(Widthcolumn setting)
        {
            InitializeComponent();

            ColumnWidthSetting = setting;
        }