Esempio n. 1
0
        private void btnSyncGGUsers_Click(object sender, EventArgs e)
        {
            bool bSuccess = ProjectHelperClient.SyncGGCUserAuth();

            if (bSuccess == true)
            {
                MessageBox.Show("同步成功");
            }
            else
            {
                MessageBox.Show("同步失败");
            }
        }
Esempio n. 2
0
        private void ShowTestRoomInfoDlg_Load(object sender, EventArgs e)
        {
            DataTable dt = ProjectHelperClient.GetTestRoomInfoByCode(TestRoomCode);

            txtTestRoomCode.Text = TestRoomCode;
            if (dt != null && dt.Rows.Count > 0)
            {
                lblProjectName.Text  = dt.Rows[0]["工程名称"].ToString();
                lblSegentName.Text   = dt.Rows[0]["标段名称"].ToString();
                lblCompanyName.Text  = dt.Rows[0]["单位名称"].ToString();
                lblTestRoomName.Text = dt.Rows[0]["试验室名称"].ToString();
            }
        }
Esempio n. 3
0
        private void QuerySponsorModifyDialog_Load(object sender, EventArgs e)
        {
            DataTable Data = ProjectHelperClient.GetTestRoomCodeView();

            if (Data != null)
            {
                FpSpread  FpSpread      = fpSpread1;
                SheetView FpSpread_Info = fpSpread1_Sheet;

                FpSpread.ShowRow(FpSpread.GetActiveRowViewportIndex(), 0, VerticalPosition.Top);

                FpSpread_Info.Columns.Count    = 8;
                FpSpread_Info.Columns[0].Width = 100;
                FpSpread_Info.Columns[1].Width = 100;
                FpSpread_Info.Columns[2].Width = 100;
                FpSpread_Info.Columns[3].Width = 100;
                FpSpread_Info.Columns[4].Width = 100;
                FpSpread_Info.Columns[5].Width = 100;
                FpSpread_Info.Columns[6].Width = 100;
                FpSpread_Info.Columns[7].Width = 100;

                FpSpread_Info.Rows.Count = Data.Rows.Count;

                int i, j;
                foreach (System.Data.DataColumn Column in Data.Columns)
                {
                    i = Data.Columns.IndexOf(Column);
                    FpSpread_Info.Columns[i].VerticalAlignment = CellVerticalAlignment.Center;
                    FpSpread_Info.Columns[i].Label             = Column.ColumnName;

                    foreach (DataRow Row in Data.Rows)
                    {
                        j = Data.Rows.IndexOf(Row);
                        FpSpread_Info.Rows[j].HorizontalAlignment = CellHorizontalAlignment.Center;
                        FpSpread_Info.Cells[j, i].Value           = Row[Column.ColumnName].ToString();
                    }
                }
            }
        }