/************************************************************* * コンストラクタ *************************************************************/ public Form_CostMng_FixedCostReg(Const.CATEGORY_TYPE category) { InitializeComponent(); this.category = category; switch (category) { case Const.CATEGORY_TYPE.Budget: this.Text = "固定費登録(予定)"; break; case Const.CATEGORY_TYPE.Actual: this.Text = "固定費登録(実績)"; break; } monthPairText = new Dictionary<int, TextBox[]>() { { 4 , new TextBox[] { manufacturing_personnel_Apr, manufacturing_depreciation_Apr, manufacturing_rent_Apr, manufacturing_repair_Apr, manufacturing_stock_Apr, manufacturing_other_Apr, selling_personnel_Apr, selling_depreciation_Apr, selling_other_Apr, operating_expenses_Apr } } , { 5 , new TextBox[] { manufacturing_personnel_May, manufacturing_depreciation_May, manufacturing_rent_May, manufacturing_repair_May, manufacturing_stock_May, manufacturing_other_May, selling_personnel_May, selling_depreciation_May, selling_other_May, operating_expenses_May } } , { 6 , new TextBox[] { manufacturing_personnel_Jun, manufacturing_depreciation_Jun, manufacturing_rent_Jun, manufacturing_repair_Jun, manufacturing_stock_Jun, manufacturing_other_Jun, selling_personnel_Jun, selling_depreciation_Jun, selling_other_Jun, operating_expenses_Jun } } , { 7 , new TextBox[] { manufacturing_personnel_Jul, manufacturing_depreciation_Jul, manufacturing_rent_Jul, manufacturing_repair_Jul, manufacturing_stock_Jul, manufacturing_other_Jul, selling_personnel_Jul, selling_depreciation_Jul, selling_other_Jul, operating_expenses_Jul } } , { 8 , new TextBox[] { manufacturing_personnel_Aug, manufacturing_depreciation_Aug, manufacturing_rent_Aug, manufacturing_repair_Aug, manufacturing_stock_Aug, manufacturing_other_Aug, selling_personnel_Aug, selling_depreciation_Aug, selling_other_Aug, operating_expenses_Aug } } , { 9 , new TextBox[] { manufacturing_personnel_Sep, manufacturing_depreciation_Sep, manufacturing_rent_Sep, manufacturing_repair_Sep, manufacturing_stock_Sep, manufacturing_other_Sep, selling_personnel_Sep, selling_depreciation_Sep, selling_other_Sep, operating_expenses_Sep } } , { 10, new TextBox[] { manufacturing_personnel_Oct, manufacturing_depreciation_Oct, manufacturing_rent_Oct, manufacturing_repair_Oct, manufacturing_stock_Oct, manufacturing_other_Oct, selling_personnel_Oct, selling_depreciation_Oct, selling_other_Oct, operating_expenses_Oct } } , { 11, new TextBox[] { manufacturing_personnel_Nov, manufacturing_depreciation_Nov, manufacturing_rent_Nov, manufacturing_repair_Nov, manufacturing_stock_Nov, manufacturing_other_Nov, selling_personnel_Nov, selling_depreciation_Nov, selling_other_Nov, operating_expenses_Nov } } , { 12, new TextBox[] { manufacturing_personnel_Dec, manufacturing_depreciation_Dec, manufacturing_rent_Dec, manufacturing_repair_Dec, manufacturing_stock_Dec, manufacturing_other_Dec, selling_personnel_Dec, selling_depreciation_Dec, selling_other_Dec, operating_expenses_Dec } } , { 1 , new TextBox[] { manufacturing_personnel_Jan, manufacturing_depreciation_Jan, manufacturing_rent_Jan, manufacturing_repair_Jan, manufacturing_stock_Jan, manufacturing_other_Jan, selling_personnel_Jan, selling_depreciation_Jan, selling_other_Jan, operating_expenses_Jan } } , { 2 , new TextBox[] { manufacturing_personnel_Feb, manufacturing_depreciation_Feb, manufacturing_rent_Feb, manufacturing_repair_Feb, manufacturing_stock_Feb, manufacturing_other_Feb, selling_personnel_Feb, selling_depreciation_Feb, selling_other_Feb, operating_expenses_Feb } } , { 3 , new TextBox[] { manufacturing_personnel_Mar, manufacturing_depreciation_Mar, manufacturing_rent_Mar, manufacturing_repair_Mar, manufacturing_stock_Mar, manufacturing_other_Mar, selling_personnel_Mar, selling_depreciation_Mar, selling_other_Mar, operating_expenses_Mar } } }; monthPairTotal = new Dictionary<int, Label>() { { 4 , total_Apr } , { 5 , total_May } , { 6 , total_Jun } , { 7 , total_Jul } , { 8 , total_Aug } , { 9 , total_Sep } , { 10, total_Oct } , { 11, total_Nov } , { 12, total_Dec } , { 1 , total_Jan } , { 2 , total_Feb } , { 3 , total_Mar } }; }
protected void setCategory(Const.CATEGORY_TYPE category) { this.category = category; }