Beispiel #1
0
        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);
        }
Beispiel #2
0
        protected override ResultStatus Open()
        {
            base.Open();

            DataTable dt = daoRPTF.ListData(_RptfTxnId, _RptfTxdId, txtYear.Text);

            gcMain.DataSource = dt;

            GridHelper.AddOpType(gcMain, new GridColumn[] { RPTF_KEY });

            if (gvMain.RowCount == 0)
            {
                InsertRow();
            }

            return(ResultStatus.Success);
        }