Exemplo n.º 1
0
        /// <summary>
        /// 窗口加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void WeightForm_Load(object sender, EventArgs e)
        {
            _sqliteApp = new SqliteAppService();
            _weightApp = new WeightAppService();



            //InitWeightPort();

            InitFormData();
        }
Exemplo n.º 2
0
        private void WeightReportForm_Load(object sender, EventArgs e)
        {
            _sqliteApp            = new SqliteAppService();
            _weightGrid           = new BindingList <WeightGridDto>(_weightGridList);
            gridWeight.DataSource = _weightGridList;

            var reportfile = Application.StartupPath + @"\report\report.grf";

            Report.LoadFromFile(reportfile);
            Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(report_FetchRecord);

            field1  = Report.FieldByName("Sort");
            field2  = Report.FieldByName("Name");
            field3  = Report.FieldByName("ProductName");
            field4  = Report.FieldByName("Weights");
            field5  = Report.FieldByName("hookWeights");
            field6  = Report.FieldByName("JWeight");
            field7  = Report.FieldByName("ProductNum");
            field8  = Report.FieldByName("ProductPrice");
            field9  = Report.FieldByName("TotalPrice");
            field10 = Report.FieldByName("weighingTime");
        }