コード例 #1
0
ファイル: WZ0010.cs プロジェクト: KJTomYeh/RekindlePhoenixCI
        protected override ResultStatus Open()
        {
            base.Open();

            DropDownList.LookUpItemDptIdAndName(ddlDept);

            RepositoryItemLookUpEdit repLookUp = new RepositoryItemLookUpEdit();

            DropDownList.RepositoryItemDptIdAndName(repLookUp);

            GridHelper.AddModifyMark(gcMain, MODIFY_MARK);
            GridHelper.AddOpType(gcMain, new GridColumn[] { UPF_USER_ID });

            gcMain.DataSource     = daoUPF.ListDataByDept("");
            UPF_DPT_ID.ColumnEdit = repLookUp;

            //if (GlobalInfo.USER_ID.ToUpper() != GlobalDaoSetting.GetConnectionInfo.ConnectionName)
            //{
            //    btnPrint.Visible = false;
            //}

            gvMain.BestFitColumns();

            return(ResultStatus.Success);
        }