Esempio n. 1
0
    private void SetEstDeptLoadMap()
    {
        this.SetMapinfo();

        MicroBSC.BSC.Biz.Biz_Bsc_EstDept_LoadMap objMap = new MicroBSC.BSC.Biz.Biz_Bsc_EstDept_LoadMap();
        DataSet rDs = objMap.GetLoadMapPerEstDept(this.IEstTermRefID, this.IEstDeptID);

        ugrdLoadMapList.Clear();
        ugrdLoadMapList.DataSource = rDs;
        ugrdLoadMapList.DataBind();
    }
Esempio n. 2
0
    private void SaveEstDeptLoadMap()
    {
        int intTxrUser = gUserInfo.Emp_Ref_ID;
        int intRow     = ugrdLoadMapList.Rows.Count;
        int intRnt     = 0;

        MicroBSC.BSC.Biz.Biz_Bsc_EstDept_LoadMap objLoadMap = new MicroBSC.BSC.Biz.Biz_Bsc_EstDept_LoadMap();

        TemplatedColumn tmcPL = null;
        TemplatedColumn tmcDO = null;
        TemplatedColumn tmcDE = null;

        TextBox txtPL = null;
        TextBox txtDO = null;
        TextBox txtDE = null;

        for (int i = 0; i < intRow; i++)
        {
            tmcPL = (TemplatedColumn)ugrdLoadMapList.Rows[i].Band.Columns.FromKey("MONTHLY_PLAN");
            tmcDO = (TemplatedColumn)ugrdLoadMapList.Rows[i].Band.Columns.FromKey("DETAILS");
            tmcDE = (TemplatedColumn)ugrdLoadMapList.Rows[i].Band.Columns.FromKey("ETC_CONTENTS");

            txtPL = (TextBox)((CellItem)tmcPL.CellItems[ugrdLoadMapList.Rows[i].BandIndex]).FindControl("txtMONTHLY_PLAN");
            txtDO = (TextBox)((CellItem)tmcDO.CellItems[ugrdLoadMapList.Rows[i].BandIndex]).FindControl("txtDETAILS");
            txtDE = (TextBox)((CellItem)tmcDE.CellItems[ugrdLoadMapList.Rows[i].BandIndex]).FindControl("txtETC_CONTENTS");

            objLoadMap.Iestterm_ref_id  = (ugrdLoadMapList.Rows[i].Cells.FromKey("ESTTERM_REF_ID").Value == null) ? 0  : Convert.ToInt32(ugrdLoadMapList.Rows[i].Cells.FromKey("ESTTERM_REF_ID").Value.ToString());
            objLoadMap.Iest_dept_ref_id = (ugrdLoadMapList.Rows[i].Cells.FromKey("EST_DEPT_REF_ID").Value == null) ? 0  : Convert.ToInt32(ugrdLoadMapList.Rows[i].Cells.FromKey("EST_DEPT_REF_ID").Value.ToString());
            objLoadMap.Iymd             = (ugrdLoadMapList.Rows[i].Cells.FromKey("YMD").Value == null)           ? "" : Convert.ToString(ugrdLoadMapList.Rows[i].Cells.FromKey("YMD").Value.ToString());
            objLoadMap.Imonthly_plan    = txtPL.Text;
            objLoadMap.Idetails         = txtDO.Text; //(ugrdLoadMapList.Rows[i].Cells.FromKey("DETAILS").Value== null)        ? "" : Convert.ToString(ugrdLoadMapList.Rows[i].Cells.FromKey("DETAILS").Value.ToString());
            objLoadMap.Ietc_contents    = txtDE.Text; //(ugrdLoadMapList.Rows[i].Cells.FromKey("ETC_CONTENTS").Value==null)    ? "" : Convert.ToString(ugrdLoadMapList.Rows[i].Cells.FromKey("ETC_CONTENTS").Value.ToString());

            if ((objLoadMap.Iestterm_ref_id == 0) || (objLoadMap.Iest_dept_ref_id == 0))
            {
                ltrScript.Text = JSHelper.GetAlertScript("평가기간이나 부서정보를 알수 없습니다.", false);
                break;
                //return;
            }

            intRnt = objLoadMap.InsertData(
                objLoadMap.Iestterm_ref_id
                , objLoadMap.Iest_dept_ref_id
                , objLoadMap.Iymd
                , objLoadMap.Imonthly_plan
                , objLoadMap.Idetails
                , objLoadMap.Ietc_contents
                , intTxrUser
                );
        }
    }
Esempio n. 3
0
    private void SetFormData()
    {
        this.IEstTermRefID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        this.IYmd          = PageUtility.GetByValueDropDownList(ddlEstTermMonth);

        if (this.IEstDeptRefID < 1)
        {
            ltrScript.Text = JSHelper.GetAlertScript("부서를 선택해 주십시오", false);
            ugrdLoadMapList.Clear();
            return;
        }

        MicroBSC.BSC.Biz.Biz_Bsc_Map_Info objMap = new MicroBSC.BSC.Biz.Biz_Bsc_Map_Info(this.IEstTermRefID, this.IEstDeptRefID, this.IYmd);
        ltEstDeptName.Text = objMap.Iest_dept_name;
        lblChampName.Text  = objMap.Ibscchampion_name;
        lblSTGMapName.Text = objMap.Idept_vision;

        MicroBSC.BSC.Biz.Biz_Bsc_EstDept_LoadMap objLoadMap = new MicroBSC.BSC.Biz.Biz_Bsc_EstDept_LoadMap();
        DataSet rDs = objLoadMap.GetLoadMapPerEstDept(this.IEstTermRefID, this.IEstDeptRefID);

        ugrdLoadMapList.Clear();
        ugrdLoadMapList.DataSource = rDs;
        ugrdLoadMapList.DataBind();
    }