Beispiel #1
0
        private void FormInit()
        {
            CostEditLogic logic = new CostEditLogic();

            logic.SetExpenditureKind(ref cmbKind);
            cmbYear.Text  = DateTime.Now.Year.ToString();
            cmbMonth.Text = DateTime.Now.Month.ToString();
            //logic.CreateExpenditureTree(treeView1);
        }
Beispiel #2
0
        //窗体初始化
        private void FormInit()
        {
            logic.CreateExpenditureTree(treev1);
            treev1.ExpandAll();
            cmbYear.Text  = DateTime.Now.Year.ToString();
            cmbMonth.Text = DateTime.Now.Month.ToString();
            CostEditLogic costEditLogic = new CostEditLogic();

            costEditLogic.SetExpenditureKind(ref cmbExpenditureSort);
            costEditLogic.SetExpenditureName(ref cmbExpenditureName);
            costEditLogic.SetExpenditureDetail(ref cmbExpenditureDetail);
            costEditLogic.SetEquipmentName(ref cmbEquipmentName);
            costEditLogic.SetProductName(ref cmbProductName);

            tempDataTable.Columns.Add("id");
            tempDataTable.Columns.Add("ekId");
            tempDataTable.Columns.Add("enId");
            tempDataTable.Columns.Add("ecId");
            tempDataTable.Columns.Add("expenditureDepict");
            tempDataTable.Columns.Add("year");
            tempDataTable.Columns.Add("month");
            tempDataTable.Columns.Add("eiId");
            tempDataTable.Columns.Add("pId");
            tempDataTable.Columns.Add("number");
            tempDataTable.Columns.Add("unitPrice");
            tempDataTable.Columns.Add("money");
            tempDataTable.Columns.Add("inputDate");
            tempDataTable.Columns.Add("inputMan");
            tempDataTable.Columns.Add("convert");
            tempDataTable.Columns.Add("remark");
            tempDataTable.Columns.Add("费用类别");
            tempDataTable.Columns.Add("费用名称");
            tempDataTable.Columns.Add("费用明细");
            tempDataTable.Columns.Add("设备名称");
            tempDataTable.Columns.Add("产品名称");

            dateTimePicker1.Value = DateTime.Now;

            dataGridView1.DataSource = tempDataTable;
        }