Example #1
0
        protected void Edit_Grid()
        {
            // 品目マスタより一覧を得る
            string[] strcou;
            //strcou = flblCount.Text.Split('=');
            Message msg = new Message(g_user_id, g_lang);

            Mgmt SrchMgmt = new Mgmt(g_user_id, g_lang);

            SrchMgmt.mgmt_cd = txtManagement.Text.ToUpper();
            DataSet ds = SrchMgmt.GetMGMTList();

            if (ds == null || ds.Tables[0].Rows.Count == 0)
            {
                dgvSearch.DataSource = null;
                dgvSearch.DataBind();
                //flblCount.Text = strcou[0] + " = 0]";
            }
            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                dgvSearch.DataSource = ds.Tables[0];
                dgvSearch.DataBind();
                ViewState["dgvSearch"] = ds.Tables[0];
                //flblCount.Text = strcou[0] + " = " + ds.Tables[0].Rows.Count.ToString() + "]";
            }
        }
Example #2
0
        protected void ddl_edit()
        {
            DataSet    dt   = new DataSet();
            ComLibrary com  = new ComLibrary();
            Mgmt       mgmt = new Mgmt(g_user_id, g_lang);

            dt = mgmt.GetMGMTList();
            ddl_MGMT_LEVEL.DataValueField = "MANAGEMENT_LEVEL";
            ddl_MGMT_LEVEL.DataTextField  = "MANAGEMENT_DESCRIPTION";
            ddl_MGMT_LEVEL.DataSource     = dt;
            ddl_MGMT_LEVEL.DataBind();
            ddl_MGMT_LEVEL.Items.Insert(0, "");

            dt = null;

            Dept dept = new Dept(g_user_id, g_lang);

            dt = dept.GetDEPTList();
            ddl_DEPT_NO.DataValueField = "DEPT_NO";
            ddl_DEPT_NO.DataTextField  = "DEPT_NAME";
            ddl_DEPT_NO.DataSource     = dt;
            ddl_DEPT_NO.DataBind();
            ddl_DEPT_NO.Items.Insert(0, "");

            dt = null;

            Process process = new Process(g_user_id, g_lang);

            dt = process.GetProcessList();
            ddl_PROCESS_NO.DataValueField = "PROCESS_NO";
            ddl_PROCESS_NO.DataTextField  = "PROCESS_NAME";
            ddl_PROCESS_NO.DataSource     = dt;
            ddl_PROCESS_NO.DataBind();
            ddl_PROCESS_NO.Items.Insert(0, "");
        }
Example #3
0
        protected void ddl_edit()
        {
            DataSet    dt   = new DataSet();
            ComLibrary com  = new ComLibrary();
            Role       role = new Role(g_user_id, g_lang);

            dt = role.GetRoleList();
            ddl_USER_GROUP.DataValueField = "USER_GROUP_CODE";
            ddl_USER_GROUP.DataTextField  = "USER_GROUP_NAME";
            ddl_USER_GROUP.DataSource     = dt;
            ddl_USER_GROUP.DataBind();
            ddl_USER_GROUP.Items.Insert(0, "");

            dt = null;

            Dept dept = new Dept(g_user_id, g_lang);

            dt = dept.GetDEPTList();
            ddl_DEPT_NO.DataValueField = "DEPT_NO";
            ddl_DEPT_NO.DataTextField  = "DEPT_NAME";
            ddl_DEPT_NO.DataSource     = dt;
            ddl_DEPT_NO.DataBind();
            ddl_DEPT_NO.Items.Insert(0, "");

            dt = null;

            Mgmt mgmt = new Mgmt(g_user_id, g_lang);

            dt = mgmt.GetMGMTList();
            ddl_MGMT_LEVEL.DataValueField = "MANAGEMENT_LEVEL";
            ddl_MGMT_LEVEL.DataTextField  = "MANAGEMENT_DESCRIPTION";
            ddl_MGMT_LEVEL.DataSource     = dt;
            ddl_MGMT_LEVEL.DataBind();
            ddl_MGMT_LEVEL.Items.Insert(0, "");
        }