示例#1
0
 public TJob(JOBTYPE _job, JobPool <JOBTYPE> _parent)
 {
     job       = _job;
     parent    = _parent;
     doneEvent = new ManualResetEvent(false);
     doneEvent.Reset();
 }
示例#2
0
        public void AddJobType(JobTypeModelView jobtype)
        {
            using (SchedulerEntities db = new SchedulerEntities())
            {
                JOBTYPE JT = new JOBTYPE();

                JT.CreatedBy      = HttpContext.Current.User.Identity.Name;
                JT.LastModifiedBy = HttpContext.Current.User.Identity.Name;
                JT.CreationDate   = DateTime.Now;

                JT.ID                 = Guid.NewGuid();
                JT.Duration           = jobtype.Duration;
                JT.Unit               = jobtype.Unit;
                JT.Rate               = jobtype.Rate;
                JT.SkillRequired      = jobtype.SkillRequired;
                JT.WorkersRequired    = jobtype.WorkersRequired;
                JT.Tools              = jobtype.Tools;
                JT.ToolCost           = jobtype.ToolsCost;
                JT.FacilitiesRequired = jobtype.FacilitiesRequired;
                JT.FacilitiesCost     = jobtype.FacilitiesCost;
                JT.Description        = jobtype.Description;
                JT.JobPrice           = jobtype.JobPrice;

                db.JOBTYPEs.Add(JT);
                db.SaveChanges();
            }
        }
示例#3
0
 private void mRBtnMulti_CheckedChanged(object sender, EventArgs e)
 {
     this.mPanelMulti.Visible   = true;
     this.mLblTotalFile.Text    = "0";
     this.mLblCompleteFile.Text = "0";
     this.mJobType = JOBTYPE.JOBTYPE_MULTI;
     this.mListBoxFile.SelectionMode = SelectionMode.MultiExtended;
 }
示例#4
0
 public UDPSocket(JOBTYPE jobtype, string ipAddress, int port)
 {
     if (jobtype == JOBTYPE.RECVDTA)
     {
         udp = new UdpClient(port);
     }
     else
     {
         udp = new UdpClient();
     }
     ipep = new IPEndPoint(IPAddress.Parse(ipAddress), port);
 }
示例#5
0
 private void mRBtnSingle_CheckedChanged(object sender, EventArgs e)
 {
     this.mPanelMulti.Visible        = false;
     this.mJobType                   = JOBTYPE.JOBTYPE_SINGLE;
     this.mListBoxFile.SelectionMode = SelectionMode.One;
 }