示例#1
0
        public void bindRecordRequestForm(Request_Report OrderReport, List <DataRow> row1)
        {
            if (!xtraTabControlRequests.Visible)
            {
                xtraTabControlRequests.Visible = true;
            }

            XtraTabPage xtraTabPage = getTabPage(xtraTabControlRequests, "اضافة طلب خاص");

            if (xtraTabPage == null)
            {
                xtraTabControlRequests.TabPages.Add("اضافة طلب خاص");
                xtraTabPage = getTabPage(xtraTabControlRequests, "اضافة طلب خاص");
            }
            xtraTabPage.Controls.Clear();

            xtraTabControlRequests.SelectedTabPage = xtraTabPage;
            //List<DataRow> row1 = new List<DataRow>();
            Request_Record objForm = new Request_Record(row1, OrderReport, xtraTabControlRequests);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
示例#2
0
 public void bindUpdateRequestForm(DataRowView rows, Request_Report OrderReport)
 {
     /*if (!xtraTabControlRequests.Visible)
      *  xtraTabControlRequests.Visible = true;
      *
      * XtraTabPage xtraTabPage = getTabPage(xtraTabControlRequests, "تعديل طلب خاص");
      *
      * if (xtraTabPage == null)
      * {
      *  xtraTabControlRequests.TabPages.Add("تعديل طلب خاص");
      *  xtraTabPage = getTabPage(xtraTabControlRequests, "تعديل طلب خاص");
      * }
      * xtraTabPage.Controls.Clear();
      *
      * xtraTabControlRequests.SelectedTabPage = xtraTabPage;
      *
      * UpdateSupplier objForm = new UpdateSupplier(rows, /*OrderReport*null, xtraTabControlRequests);
      * objForm.TopLevel = false;
      *
      * xtraTabPage.Controls.Add(objForm);
      * objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
      * objForm.Dock = DockStyle.Fill;
      * objForm.Show();*/
 }