コード例 #1
0
ファイル: MyWorkItem.aspx.cs プロジェクト: spenleeV/fireflow
        public void Sdate_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            List <IWorkItem> iwis = RuntimeContextExamples.GetRuntimeContext().getWorkflowSession().findMyTodoWorkItems(this.User.Identity.Name);

            Sdate.DataSource = iwis;
            Sdate.DataBind();
        }
コード例 #2
0
        public void Sdate_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            List <IWorkItem> iwis = RuntimeContextExamples.GetRuntimeContext().PersistenceService.FindHaveDoneWorkItems(this.User.Identity.Name);

            Sdate.DataSource = iwis;
            Sdate.DataBind();
        }
コード例 #3
0
 public WeekInstance(DayInstance dayInit)
 {
     day = new List <DayInstance>
     {
         dayInit
     };
     DateTime.TryParseExact(dayInit.Day, "dd.MM.yyyy", null, DateTimeStyles.None, out var date);
     Sdate   = StartOfWeek(date, DayOfWeek.Monday);
     Edate   = Sdate.AddDays(6);
     WeekNum = GetIso8601WeekOfYear(Sdate);
 }
コード例 #4
0
ファイル: LogSMS.cs プロジェクト: woodytc/KtblWSSMS
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();

            hash = (hash * 397) ^ Userid.GetHashCode();
            hash = (hash * 397) ^ Branchid.GetHashCode();
            hash = (hash * 397) ^ Seq.GetHashCode();
            hash = (hash * 397) ^ Sdate.GetHashCode();
            hash = (hash * 397) ^ Typecode.GetHashCode();

            return(hash);
        }
コード例 #5
0
ファイル: frmStageEntry.cs プロジェクト: SDivyaprabha/CRM1
 private void frmStageEntry_Load(object sender, EventArgs e)
 {
     Sdate.EditValue  = DateTime.Now;
     SCdate.EditValue = DateTime.Now;
     dEDue.EditValue  = DateTime.Now;
     PopulatProject();
     GetVoucherNo();
     if (m_smode == "E")
     {
         PopulateEditData();
     }
     Sdate.Focus();
 }
コード例 #6
0
        public void Sdate_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            IPersistenceService ips = RuntimeContextExamples.GetRuntimeContext().PersistenceService;
            string username         = this.User.Identity.Name;

            if (username == "admin")
            {
                username = "";
            }
            List <IProcessInstance> pis = ips.FindProcessInstanceListByCreatorId(username, "", 100, 0);

            foreach (IProcessInstance item in pis)
            {
                ((ProcessInstance)item).RuntimeContext = ips.RuntimeContext;
            }
            Sdate.DataSource = pis;
            Sdate.DataBind();
        }
コード例 #7
0
    public Chengji(string RawData)
    {
        var Items = RawData.Split(",").Select(x => x.Trim(Dataset.QMark)).ToArray();

        Id         = Items[0];
        Number     = Items[1];
        NumberName = Items[2].Trim();   //部分数据带Tab制表符..
        SubId      = Items[3];
        SubName    = Items[4];
        Term       = Items[5];
        Type       = Items[6];
        Sdate      = Utility.FormatTime(Items[7]);
        SdateYear  = Sdate.Split(" ")[0].Split("/")[0];
        SdateMonth = Sdate.Split(" ")[0].Split("/")[1];
        SdateDay   = Sdate.Split(" ")[0].Split("/")[2];
        StudentID  = Items[8];
        var s = Dataset.StudentList.Where(x => x.ID == StudentID);

        if (s.Count() == 1)
        {
            StudentName = s.First().Name;
            ClassID     = s.First().ClassId;
            ClassName   = s.First().ClassName;
            if (ClassName.Contains("高一"))
            {
                if (Term.StartsWith("2016-2017"))
                {
                    Grade = "初二";
                }
                if (Term.StartsWith("2017-2018"))
                {
                    Grade = "初三";
                }
                if (Term.StartsWith("2018-2019"))
                {
                    Grade = "高一";
                }
            }

            if (ClassName.Contains("高二"))
            {
                if (Term.StartsWith("2016-2017"))
                {
                    Grade = "初三";
                }
                if (Term.StartsWith("2017-2018"))
                {
                    Grade = "高一";
                }
                if (Term.StartsWith("2018-2019"))
                {
                    Grade = "高二";
                }
            }

            if (ClassName.Contains("高三"))
            {
                if (Term.StartsWith("2015-2016"))
                {
                    Grade = "初三";
                }
                if (Term.StartsWith("2016-2017"))
                {
                    Grade = "高一";
                }
                if (Term.StartsWith("2017-2018"))
                {
                    Grade = "高二";
                }
                if (Term.StartsWith("2018-2019"))
                {
                    Grade = "高三";
                }
            }
            if (String.IsNullOrEmpty(Grade))
            {
                Console.WriteLine("学号:" + StudentID + " 学期:" + Term);
            }
            //根据班级号,SUBID检索授课教师ID
            var t = Dataset.TeacherList.Where(x => x.SubId == SubId && x.ClassId == ClassID);
            if (t.Count() == 1)
            {
                TeacherID   = t.First().Id;
                TeacherName = t.First().Name;
            }
        }
        Score = float.Parse(Items[9]);
        if (Items[9].Length > 6)
        {
            Score = (float)Math.Round(Score, 2);
        }
        //Term + Type 不是Key,必须用Number
        IdForGradeExam = SubId + ":" + Number + ":" + Grade;
        ZScore         = Items[10];
        TScore         = Items[11];
        Dengdi         = Items[12];
    }
コード例 #8
0
 public void query_Click(object sender, AjaxEventArgs e)
 {
     Sdate.DataSource = RuntimeContextExamples.GetRuntimeContext().DefinitionService.GetAllLatestVersionsOfWorkflowDefinition();
     Sdate.DataBind();
 }