private void 财务toolStripButton_Click(object sender, EventArgs e)
        {
            IAuthorization authorization = PlatformFactory.GetObject <IAuthorization>();
            string         businessID    = "零星采购申请财务综合查询";

            string[] pare = { dataGridView1.CurrentRow.Cells["单据号"].Value.ToString() };

            IQueryResult  qr           = authorization.QueryMultParam(businessID, null, pare);
            List <string> lstFindField = new List <string>();

            if (qr.DataCollection == null || qr.DataCollection.Tables.Count == 0)
            {
                return;
            }

            DataColumnCollection columns = qr.DataCollection.Tables[0].Columns;

            if (qr.Succeeded && columns.Count > 0)
            {
                for (int i = 0; i < columns.Count; i++)
                {
                    lstFindField.Add(columns[i].ColumnName);
                }
            }

            FormConditionFind formFindCondition = new FormConditionFind(this, lstFindField.ToArray(), businessID, labelTitle.Text);

            formFindCondition.ShowDialog();
        }
        private void 综合查询toolStripButton_Click(object sender, EventArgs e)
        {
            IAuthorization authorization = PlatformFactory.GetObject <IAuthorization>();
            string         businessID    = "零星采购申请综合查看";
            IQueryResult   qr            = authorization.Query(businessID, null, null, 0);
            List <string>  lstFindField  = new List <string>();

            if (qr.DataCollection == null || qr.DataCollection.Tables.Count == 0)
            {
                return;
            }

            DataColumnCollection columns = qr.DataCollection.Tables[0].Columns;

            if (qr.Succeeded && columns.Count > 0)
            {
                for (int i = 0; i < columns.Count; i++)
                {
                    lstFindField.Add(columns[i].ColumnName);
                }
            }

            FormConditionFind formFindCondition = new FormConditionFind(this, lstFindField.ToArray(), businessID, labelTitle.Text);

            formFindCondition.ShowDialog();
        }
        private void 综合查询toolStripButton3_Click(object sender, EventArgs e)
        {
            IAuthorization authorization = PlatformFactory.GetObject <IAuthorization>();
            string         businessID    = "";
            IQueryResult   qr            = null;
            List <string>  lstFindField  = new List <string>();

            IQueryable <View_HR_PersonnelArchive> directorGroup3 = m_personnerServer.GetDeptDirector(BasicInfo.DeptCode, "0");
            IQueryable <View_HR_PersonnelArchive> directorGroup  = m_personnerServer.GetDeptDirector(BasicInfo.DeptCode, "1");
            IQueryable <View_HR_PersonnelArchive> directorGroup2 = m_personnerServer.GetDeptDirector(BasicInfo.DeptCode, "2");

            authorization = PlatformFactory.GetObject <IAuthorization>();
            businessID    = "出差综合查询";
            string[] pare = { BasicInfo.DeptCode };
            qr = authorization.QueryMultParam(businessID, null, pare);

            DataColumnCollection columns = qr.DataCollection.Tables[0].Columns;

            if (qr.Succeeded && columns.Count > 0)
            {
                for (int i = 0; i < columns.Count; i++)
                {
                    lstFindField.Add(columns[i].ColumnName);
                }
            }

            FormConditionFind formFindCondition = new FormConditionFind(this, lstFindField.ToArray(), businessID, labelTitle.Text);

            formFindCondition.ShowDialog();
        }
Beispiel #4
0
        private void btnAdvSearch_Click(object sender, EventArgs e)
        {
            IAuthorization authorization = PlatformFactory.GetObject <IAuthorization>();
            string         businessID    = "会议信息普通查询";
            IQueryResult   qr            = authorization.QueryMultParam("会议信息普通查询", null, new object[] { BasicInfo.LoginID });
            List <string>  lstFindField  = new List <string>();

            if (qr.DataCollection == null || qr.DataCollection.Tables.Count == 0)
            {
                return;
            }

            DataColumnCollection columns = qr.DataCollection.Tables[0].Columns;

            if (qr.Succeeded && columns.Count > 0)
            {
                for (int i = 0; i < columns.Count; i++)
                {
                    lstFindField.Add(columns[i].ColumnName);
                }
            }

            FormConditionFind formFindCondition = new FormConditionFind(this, lstFindField.ToArray(), businessID, labelTitle.Text);

            formFindCondition.ShowDialog();
        }
        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (m_formFindCondition == null)
            {
                m_formFindCondition = new FormConditionFind(this, m_findField, labelTitle.Text, labelTitle.Text);
            }

            m_formFindCondition.ShowDialog();
        }
        private void 导出EXCEL表单ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (m_formFindCondition != null && !m_formFindCondition.SaveFlag)
            {
                m_formFindCondition = null;
            }

            if (m_formFindCondition == null)
            {
                m_formFindCondition = new FormConditionFind(this, m_findField, labelTitle.Text, labelTitle.Text);
            }

            m_formFindCondition.ShowDialog();
        }
        private void 综合查询toolStripButton3_Click(object sender, EventArgs e)
        {
            IAuthorization       authorization = PlatformFactory.GetObject <IAuthorization>();
            string               businessID    = "查看储备人才库";
            IQueryResult         qr            = authorization.Query(businessID, null, null, 0);
            List <string>        lstFindField  = new List <string>();
            DataColumnCollection columns       = qr.DataCollection.Tables[0].Columns;

            if (qr.Succeeded && columns.Count > 0)
            {
                ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView1);

                for (int i = 0; i < columns.Count; i++)
                {
                    lstFindField.Add(columns[i].ColumnName);
                }
            }

            FormConditionFind formFindCondition = new FormConditionFind(this, lstFindField.ToArray(), businessID, labelTitle.Text);

            formFindCondition.ShowDialog();
        }
Beispiel #8
0
        private void btnIntegrativeQuery_Click(object sender, EventArgs e)
        {
            IAuthorization authorization = PlatformFactory.GetObject <IAuthorization>();
            string         businessID    = "订单入库单综合查询";

            string[]             pare         = { m_strProvider, dateTimePicker1.Value.ToShortDateString(), dateTimePicker2.Value.ToShortDateString() };
            IQueryResult         qr           = authorization.QueryMultParam(businessID, pare);
            List <string>        lstFindField = new List <string>();
            DataColumnCollection columns      = qr.DataCollection.Tables[0].Columns;

            if (qr.Succeeded && columns.Count > 0)
            {
                for (int i = 0; i < columns.Count; i++)
                {
                    lstFindField.Add(columns[i].ColumnName);
                }
            }

            FormConditionFind formFindCondition = new FormConditionFind(this, lstFindField.ToArray(), businessID, "订单入库单综合查询", pare);

            formFindCondition.ShowDialog();
        }