示例#1
0
        protected void OnButtonOkClicked(object sender, EventArgs e)
        {
            string param = String.Format("start={0}&end={1}",
                                         String.Format("{0:u}", selectperiod1.DateBegin).Substring(0, 10),
                                         String.Format("{0:u}", selectperiod1.DateEnd).Substring(0, 10)
                                         );

            ViewReportExt.Run("MonthReport", param);
        }
        protected void OnButtonOkClicked(object sender, EventArgs e)
        {
            string parameters = String.Empty;

            if (!comboPlacement.IsSelectedAll)
            {
                parameters = $"place={comboPlacement.SelectedItem}";
            }
            ViewReportExt.Run("StoreByPlacements", parameters);
        }
示例#3
0
        protected void OnButtonOkClicked(object sender, EventArgs e)
        {
            string param = String.Format("status={0}&start={1}&end={2}&cost1={3}",
                                         ComboWorks.GetActiveId(comboStatus),
                                         String.Format("{0:u}", selectperiod1.DateBegin).Substring(0, 10),
                                         String.Format("{0:u}", selectperiod1.DateEnd).Substring(0, 10),
                                         1);

            param += "&stock=";
            foreach (KeyValuePair <string, Gtk.CheckButton> pair in checklistStock.CheckButtons)
            {
                if (pair.Value.Active)
                {
                    param += String.Format("{0},", pair.Key);
                }
            }
            logger.Debug(String.Format("Report parameters=|{0}|", param));

            ViewReportExt.Run("glassorders", param.TrimEnd(','));
        }
示例#4
0
        protected void OnButtonOkClicked(object sender, EventArgs e)
        {
            string type = "";

            foreach (yCheckButton check in vbox2.Children)
            {
                if (type.Length > 0 && check.Active)
                {
                    type += ", ";
                }
                if (check.Active)
                {
                    type += check.Tag;
                }
            }

            string date = String.Format("{0:u}", dateCalendar.Date).Substring(0, 10);

            string param = String.Format("type={0}&date={1}", type, date);

            ViewReportExt.Run("PrintDay", param);
        }
示例#5
0
	protected void OnActionStoreReportActivated(object sender, EventArgs e)
	{
		ViewReportExt.Run("Store", String.Empty);
	}