예제 #1
0
파일: frmBomFind.cs 프로젝트: cfmis/cfvn
        public frmBomFind()
        {
            InitializeComponent();

            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            str_language = DBUtility._language;
            NextControl oNext = new NextControl(this, "1");

            oNext.EnterToTab();

            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.Set_Button_Image(toolStrip1);

            DataTable dtDept = clsApp.GetDataTable(@"SELECT id as dep_id,(id +'[' + name+']') AS dep_cdesc FROM dbo.bs_department with(nolock) WHERE state='0'");
            DataRow   dr1    = dtDept.NewRow(); //插一空行

            dr1["dep_id"] = "";
            dtDept.Rows.InsertAt(dr1, 0);
            txtDetp_id1.Properties.DataSource    = dtDept;
            txtDetp_id1.Properties.ValueMember   = "dep_id";
            txtDetp_id1.Properties.DisplayMember = "dep_cdesc";
            txtDetp_id2.Properties.DataSource    = dtDept;
            txtDetp_id2.Properties.ValueMember   = "dep_id";
            txtDetp_id2.Properties.DisplayMember = "dep_cdesc";
        }
예제 #2
0
        public frmSysWindow()
        {
            InitializeComponent();
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();
        }
예제 #3
0
        public frmPoPurchaseBillEditFare(frmPoPurchaseBill frmParent, string edit_status, string id, string ver)
        {
            InitializeComponent();
            myParentForm = frmParent;
            m_state      = edit_status;
            m_id         = id;
            m_ver        = ver;

            if (m_state != "")
            {
                if (frmPoPurchaseBill.bds_fare.Count > 0)
                {
                    SetObjValue.SetEditBackColor(this.Controls, true);
                }
            }
            else
            {
                SetObjValue.SetEditBackColor(this.Controls, false);
                btnItemAdd.Enabled = false;
                btnItemDel.Enabled = false;
            }
            bdnav.BindingSource = frmPoPurchaseBill.bds_fare;
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();
        }
예제 #4
0
        public frmSysPopedomEdit(string userGroup)
        {
            InitializeComponent();
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            user_group_id      = userGroup;
            txtUser_Group.Text = user_group_id;
        }
예제 #5
0
        public frmSysDictionary()
        {
            InitializeComponent();
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            //設置按鈕圖片
            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.Set_Button_Image(toolStrip1);
        }
예제 #6
0
        public frmBsStockLocation()
        {
            InitializeComponent();
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            //權限
            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.SetToolBar();
            objToolbar.Set_Button_Image(toolStrip1);
        }
예제 #7
0
        public frmBsBrand()
        {
            InitializeComponent();
            //翻譯
            clsTranslate obj_ctl = new clsTranslate(this.Controls, mLanguage);

            obj_ctl.Translate();

            //權限
            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.SetToolBar();
            objToolbar.Set_Button_Image(toolStrip1);
        }
예제 #8
0
        public frmMaterialType()
        {
            InitializeComponent();

            mLanguage = DBUtility._language;
            //翻譯
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            //權限
            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.SetToolBar();
            objToolbar.Set_Button_Image(toolStrip1);
        }
예제 #9
0
파일: frmBsArtWork.cs 프로젝트: cfmis/cfvn
        public frmBsArtWork()
        {
            InitializeComponent();

            str_language = DBUtility._language;
            //翻譯
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            //權限
            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.SetToolBar();
            objToolbar.Set_Button_Image(toolStrip1);
            mArtWorkPath = clsPub.GetArtWorkPath();
        }
예제 #10
0
        public frmTempReceiptQuery()
        {
            InitializeComponent();
            NextControl obj = new NextControl(this, "1");

            obj.EnterToTab();

            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            //權限
            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.SetToolBar();
            objToolbar.Set_Button_Image(toolStrip1);
            //初始化查找條件
            objPub.Initialize_find_value(this.Name, this.Controls);
        }
예제 #11
0
        //clsToolBar objToolbar;

        public frmCdGoodsCodeA()
        {
            InitializeComponent();

            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();


            //create_by.Tag="1";
            //create_by.Enabled = false;
            //create_date.Tag = "1";
            //create_date.Enabled = false;
            //update_by.Tag="1";
            //update_by.Enabled = false;
            //update_date.Tag="1";
            //update_date.Enabled = false;

            //權限
            //objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            //objToolbar.SetToolBar();
        }
예제 #12
0
        public frmPoReceiptEdit(frmPoReceipt frmParent, string edit_status, string id, string bill_type)
        {
            InitializeComponent();
            myParentForm     = frmParent;
            m_state          = edit_status;
            m_id             = id;
            m_bill_origin_id = bill_type;

            if (m_state != "")
            {
                SetObjValue.SetEditBackColor(this.Controls, true);
            }
            else
            {
                SetObjValue.SetEditBackColor(this.Controls, false);
                btnItemAdd.Enabled = false;
                btnItemDel.Enabled = false;
            }
            bdnav.BindingSource = frmPoReceipt.bds_d;
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();
        }
예제 #13
0
        public frmCdCompany()
        {
            InitializeComponent();

            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();


            txtCreate_by.textBox.Tag       = "1";
            txtCreate_by.textBox.Enabled   = false;
            txtCreate_date.textBox.Tag     = "1";
            txtCreate_date.textBox.Enabled = false;
            txtUpdate_by.textBox.Tag       = "1";
            txtUpdate_by.textBox.Enabled   = false;
            txtUpdate_date.textBox.Tag     = "1";
            txtUpdate_date.textBox.Enabled = false;

            //權限
            objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls);
            objToolbar.SetToolBar();
            objToolbar.Set_Button_Image(toolStrip1);
        }
예제 #14
0
        public frmMmFind(string _type)
        {
            InitializeComponent();
            //窗體對象標簽翻譯
            clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language);

            obj_ctl.Translate();

            //bs_mat_master中的字段modality用于區分物料的類型:
            //0 自制
            //1 委外
            //2 採購
            //3 成品(F0...)

            //參數_type = "0",允許選擇自制(0),委外(1)的貨品          --(即自制與委外,不包含採購件)
            //參數_type = "1",允許選擇自制(0),委外(1),採購(2)的貨品  --(即全部,包含採購件)
            m_goods_type = _type;
            if (_type == "1")
            {
                chkPur.Enabled = true;
                chkPur.Visible = true;
            }
            else
            {
                chkPur.Enabled = false;
                chkPur.Visible = false;
            }

            NextControl oNext = new NextControl(this, "1");

            oNext.EnterToTab();

            //加載按鈕圖片
            clsSetButtonImage objBtns = new clsSetButtonImage();

            objBtns.Set_Button_Image(toolStrip1);
        }