Ejemplo n.º 1
0
        public Setting_budget_add(int code, int gCode, Setting_budget.cellContent content, string name, string path, Setting_budget sb)   // 관 추가,수정은 gCode가 0
        {
            InitializeComponent();

            strPath           = path;
            this.Text         = name;
            this.sortName     = name;
            this._sb          = sb;
            this.codeCount    = content.cellCount + 1;
            this.currentName  = content.cellName;
            this.currentOrder = content.cellOrder;
            this.inner_order  = code; // 관코드, 항코드
            this.db           = new DBHandling(strPath);
            this.hgCode       = gCode;

            if (sortName == "관 추가" || sortName == "항 추가")
            {
                order.Text = codeCount.ToString();
            }
            if (sortName == "항 수정")
            {
                name_text.Text = this.currentName;
                order.Text     = this.currentOrder.ToString();
                codeCount      = this._sb.sameGNumber();
            }
        }
Ejemplo n.º 2
0
        public Setting_budget_delete(string name, string path, Setting_budget.cellContent content, Setting_budget sb)
        {
            InitializeComponent();

            strPath      = path;
            sortName     = name;
            this._db     = new DBHandling(strPath);
            this._sb     = sb;
            clickContent = content;

            this.Name        = name;
            this.label1.Text = "정말 " + content.cellName + " 을(를) 삭제하시겠습니까?";
        }
Ejemplo n.º 3
0
        public Setting_budget_add_m(int code, int gCode, int hCode, Setting_budget.cellContent content, String name, String path, Setting_budget sb)
        {
            InitializeComponent();

            this.inner_order  = code;
            this.mgCode       = gCode;
            this.mhCode       = hCode;
            this.codeCount    = content.cellCount + 1; // 추가는 1을 추가해야함
            this.currentOrder = content.cellOrder;
            this.currentName  = content.cellName;
            this.sortName     = name;
            this.strPath      = path;
            this._sb          = sb;
            this._db          = new DBHandling(strPath);

            this.Text  = name;
            order.Text = this.codeCount.ToString();
        }
Ejemplo n.º 4
0
        public Setting_budget_add(string name, Setting_budget.cellContent content, String path, Setting_budget sb)   // 관 수정 생성자
        {
            InitializeComponent();

            strPath           = path;
            this.Text         = name;
            sortName          = name;
            this._sb          = sb;
            this.inner_order  = content.cellCount;
            this.currentOrder = content.cellOrder;
            this.currentName  = content.cellName;
            this.codeCount    = this.inner_order;
            db = new DBHandling(strPath);

            if (name == "관 수정")
            {
                name_text.Text = this.currentName;
                order.Text     = this.currentOrder.ToString();
            }
        }