Beispiel #1
0
        /// <summary>
        /// 通用窗体加载方法,如果不要使用,则重写,一般不要修改
        /// </summary>
        public virtual void IniFormLoadBefore()
        {
            if (HTDataDts.Columns.Count != 0)
            {
                ProcessGrid.BindGridColumn(_HTDataDts, this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDts, this.FormListAID, this.FormListBID); //设置列UI
                ProcessGrid.SetGridManDefault(_HTDataDts);
            }

            for (int i = 0; i < _HTDataDtsAttach.Length; i++)
            {
                ProcessGrid.BindGridColumn(_HTDataDtsAttach[i], this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDtsAttach[i], this.FormListAID, this.FormListBID); //设置列UI
                ProcessGrid.SetGridManDefault(_HTDataDtsAttach[i]);
            }

            SetToolButtonVisible();
        }
Beispiel #2
0
        /// <summary>
        /// 通用窗体加载方法,如果不要使用,则重写,一般不要修改
        /// </summary>
        public virtual void IniFormLoadBefore()
        {
            if (_HTDataList.Columns.Count != 0)
            {
                ProcessGrid.BindGridColumn(_HTDataList, this.FormID);                              //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataList, this.FormListAID, this.FormListBID);      //设置列UI
                this.gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1); //绑定GridView1事件
                gridViewBindEventA1(_HTDataList);
            }
            for (int i = 0; i < _HTDataDtsAttach.Length; i++)
            {
                ProcessGrid.BindGridColumn(_HTDataDtsAttach[i], this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDtsAttach[i], this.FormListAID, this.FormListBID); //设置列UI
                ProcessGrid.SetGridManDefault(_HTDataDtsAttach[i]);
            }

            ProcessGrid.SetGridReadOnly(_HTDataList, false);
            ProcessGrid.SetGridUIListDefault(_HTDataList);
            btnQuery_Click(null, null);
        }
Beispiel #3
0
        /// <summary>
        /// 通用窗体加载方法,如果不要使用,则重写,一般不要修改
        /// </summary>
        public virtual void IniFormLoadBefore()
        {
            if (_HTDataList.Columns.Count != 0)
            {
                ProcessGrid.BindGridColumn(_HTDataList, this.FormID);                              //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataList, this.FormListAID, this.FormListBID);      //设置列UI
                this.gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1); //绑定GridView1事件
                gridViewBindEventA1(_HTDataList);

                _HTDataList.RowCellStyle += new RowCellStyleEventHandler(_HTDataDts_RowCellStyle);

                //_HTDataList.DoubleClick += new EventHandler(btnBrowse_Click);
                _HTDataList.GridControl.DoubleClick += new EventHandler(btnBrowse_Click);
            }

            for (int i = 0; i < _HTDataDtsAttach.Length; i++)
            {
                ProcessGrid.BindGridColumn(_HTDataDtsAttach[i], this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDtsAttach[i], this.FormListAID, this.FormListBID); //设置列UI
                ProcessGrid.SetGridManDefault(_HTDataDtsAttach[i]);
            }
            ProcessGrid.SetGridUIListDefault(_HTDataList);
            if (SysConvert.ToBoolean(WinUIParamSet.GetIntValueByID(8011)))//系统编辑单据列表数据允许复制
            {
                ProcessGrid.SetGridReadOnly(_HTDataList, false);
            }
            else
            {
                ProcessGrid.SetGridReadOnly(_HTDataList, true);
            }

            SetToolButtonVisible();
            if (IsPostBack)
            {
                btnQuery_Click(null, null);
            }
            _HTDataList.GridControl.ContextMenuStrip = cMenuFirst;
            this.ContextMenuStrip = cMenuFirst;
            FCommon.AddDBLog(this.Text, "查询", " ", "");
        }
Beispiel #4
0
        /// <summary>
        /// 通用窗体加载方法,如果不要使用,则重写,一般不要修改
        /// </summary>
        public virtual void IniFormLoadBefore()
        {
            if (_HTDataList.Columns.Count != 0)
            {
                ProcessGrid.BindGridColumn(_HTDataList, this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataList, this.FormListAID, this.FormListBID); //设置列UI
                _HTDataList.RowCellStyle                       += new RowCellStyleEventHandler(_HTDataDts_RowCellStyle);
                _HTDataList.GridControl.DoubleClick            += new EventHandler(btnLoad_Click);
                _HTDataList.OptionsBehavior.ShowEditorOnMouseUp = false;
            }

            for (int i = 0; i < _HTDataDtsAttach.Length; i++)
            {
                ProcessGrid.BindGridColumn(_HTDataDtsAttach[i], this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDtsAttach[i], this.FormListAID, this.FormListBID); //设置列UI
                ProcessGrid.SetGridManDefault(_HTDataDtsAttach[i]);
                _HTDataDtsAttach[i].OptionsBehavior.ShowEditorOnMouseUp = false;
            }

            ProcessGrid.SetGridReadOnly(_HTDataList, true);
            ProcessGrid.SetGridUIListDefault(_HTDataList);
            //btnQuery_Click(null, null);
        }