private void ParentView_Load(object sender, EventArgs e)
        {
            Assy_txtbox.Focus();

            //Assy_txtbox.Text = SPM_ConnectControls.whereusedcontrols;
            Assy_txtbox.Text = itemnumber;

            if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6)
            {
                itemnumber = null;
                startprocessofwhereused();
            }
            Assy_txtbox.Select();
            log4net.Config.XmlConfigurator.Configure();
            log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            log.Info("Opened AutoCadWhereUsed Form by " + System.Environment.UserName);
        }
示例#2
0
 private void ParentView_Load(object sender, EventArgs e)
 {
     Assy_txtbox.Focus();
     Assy_txtbox.Text = itemnumber;
     if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6)
     {
         //SendKeys.Send("~");
         itemnumber = null;
         Assy_txtbox.Select();
         startprocessofwhereused();
         CallRecursive();
         // connectapi.SPM_Connect();
         if (connectapi.getdepartment() == "Eng")
         {
             eng = true;
         }
     }
     log4net.Config.XmlConfigurator.Configure();
     log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
     log.Info("Opened Where Used " + itemnumber + " by " + System.Environment.UserName);
 }
示例#3
0
 private void ParentView_Load(object sender, EventArgs e)
 {
     // Suspend the layout logic for the form, while the application is initializing
     this.SuspendLayout();
     Assy_txtbox.Focus();
     Assy_txtbox.Text = itemnumber;
     if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6)
     {
         Startprocessofbom();
         CallRecursive();
         if (connectapi.ConnectUser.Dept == Department.Eng)
         {
             eng = true;
         }
         Assy_txtbox.Select();
     }
     log4net.Config.XmlConfigurator.Configure();
     log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
     log.Info("Opened Estimate BOM " + itemnumber + " ");
     // Resume the layout logic
     this.ResumeLayout();
 }
示例#4
0
        private void ParentView_Load(object sender, EventArgs e)
        {
            Assy_txtbox.Select();
            savebttn.Visible  = false;
            qtylbl.Visible    = false;
            qtytxtbox.Visible = false;

            Assy_txtbox.Focus();

            //Assy_txtbox.Text = SPM_ConnectControls.assytree;
            Assy_txtbox.Text = itemnumber;

            if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6)
            {
                Assy_txtbox.Focus();
                itemnumber = null;
                //SendKeys.Send("~");
                startprocessofwhereused();
            }
            log4net.Config.XmlConfigurator.Configure();
            log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            log.Info("Opened AutoCadAssembly Form ");
        }