private void setLog(int OstadCode, string Description, bool acceptAgreement)
        {
            DTO.eventEnum eventType = DTO.eventEnum.امضای_قرارداد_توسط_مدیر_کارگزینی;
            if (acceptAgreement)
            {
                switch (int.Parse(Request.QueryString["uc"]))
                {
                case (int)DTO.RoleEnums.مدیر_کل_امور_پژوهشی:
                    eventType = DTO.eventEnum.تایید_تفاهم_نامه_توسط_مدیر_کل_امور_پژوهشی;
                    break;

                case (int)DTO.RoleEnums.سرپرست_واحد:
                    eventType = DTO.eventEnum.تایید_تفاهم_نامه_توسط_سرپرست_واحد;
                    break;
                }
            }
            else
            {
                eventType = DTO.eventEnum.رد_تفاهم_نامه;
            }
            Business.Common.CommonBusiness CB = new Business.Common.CommonBusiness();
            int userId;         //کاربری که لاگین کرده
            //eventType//کد کاری که انجام شده.
            int    appId;       //کد قسمتی از برنامه که الان توش هستیم. یعنی کارگزینی  -  13
            string description; //توضیحات اختیاری
            int    modifyId;    //کد استاد ...

            userId      = int.Parse(Session[sessionNames.userID_Karbar].ToString());
            appId       = 13;
            modifyId    = OstadCode;
            description = Description;
            CB.InsertIntoUserLog(userId, DateTime.Now.ToString("HH:mm"), appId, (int)eventType, description, modifyId);
        }
        private void setLog(DTO.eventEnum eventType, string Description)
        {
            int userId;   //کاربری که لاگین کرده
            //eventType//کد کاری که انجام شده.
            int appId;    //کد قسمتی از برنامه که الان توش هستیم. یعنی کارگزینی  -  13
            int modifyId; //کد درخواست ویرایش شده. ویرایش اطلاعات فردی،اطلاعات تماس و ...

            userId = int.Parse(Session[sessionNames.userID_Karbar].ToString());
            appId  = 13;
            ProfCommonBusiness.InsertIntoUserLog(userId, DateTime.Now.ToString("HH:mm"), appId, (int)eventType, Description, 0);
        }
Esempio n. 3
0
        private void setLog()
        {
            DTO.eventEnum eventType = DTO.eventEnum.درج_امضای_استاد;
            int           user_Code = 0;

            switch (Convert.ToInt32(ViewState[userTypeRole]))
            {
            case 1:
                switch (ViewState[updateOrInsert].ToString())
                {
                case "up":
                    eventType = DTO.eventEnum.به_روز_رسانی_امضای_استاد;
                    break;

                case "ins":
                    eventType = DTO.eventEnum.درج_امضای_استاد;
                    break;

                case "dlt":
                    eventType = DTO.eventEnum.حذف_امضای_استاد;
                    break;
                }
                user_Code = Convert.ToInt32(ViewState[hrID]);
                break;

            case (int)DTO.RoleEnums.سرپرست_واحد:                  //سرپرست دانشگاه
            case (int)DTO.RoleEnums.مدیر_امور_کارگزینی_هیئت_علمی: //پاراف سمت راست
            case (int)DTO.RoleEnums.مسئول_حق_التدریس:             //پاراف سمت چپ
            case (int)DTO.RoleEnums.مسئول_کارگزینی_هیات_علمی:     //پاراف سمت چپ
                switch (ViewState[updateOrInsert].ToString())
                {
                case "up":
                    eventType = DTO.eventEnum.به_روز_رسانی_امضای_کاربر;
                    break;

                case "ins":
                    eventType = DTO.eventEnum.درج_امضای_کاربر;
                    break;
                }
                user_Code = Convert.ToInt32(ViewState[userCode]);
                break;
            }
            int userId;         //کاربری که لاگین کرده
            //eventType//کد کاری که انجام شده.
            int    appId;       //کد قسمتی از برنامه که الان توش هستیم. یعنی کارگزینی  -  13
            string description; //توضیحات اختیاری
            int    modifyId;    //کد درخواست ویرایش شده. ویرایش اطلاعات فردی،اطلاعات تماس و ...

            userId      = int.Parse(Session[sessionNames.userID_Karbar].ToString());
            appId       = 13;
            modifyId    = user_Code;
            description = "";
            CB.InsertIntoUserLog(userId, DateTime.Now.ToString("HH:mm"), appId, (int)eventType, description, modifyId);
        }
Esempio n. 4
0
        private void setLog(DTO.eventEnum eventType, string description, int modifyID)
        {
            CommonBusiness CB = new CommonBusiness();
            int            userId;                    //کاربری که لاگین کرده
            int            appId;                     //کد قسمتی از برنامه که الان توش هستیم. یعنی فارغ التحصیلان  -  10
            string         Description = description; //توضیحات اختیاری

            userId = Convert.ToInt32(Session[sessionNames.userID_Karbar]);
            appId  = 10;

            CB.InsertIntoUserLog(userId, DateTime.Now.ToString("HH:mm"), appId, (int)eventType, Description, modifyID);
        }
        private void setLog(DTO.eventEnum eventType, int OstadCode, string Description)
        {
            int userId;         //کاربری که لاگین کرده
            //eventType//کد کاری که انجام شده.
            int    appId;       //کد قسمتی از برنامه که الان توش هستیم. یعنی کارگزینی  -  13
            string description; //توضیحات اختیاری
            int    modifyId;    //کد درخواست ویرایش شده. ویرایش اطلاعات فردی،اطلاعات تماس و ...

            userId      = int.Parse(Session[sessionNames.userID_Karbar].ToString());
            appId       = 13;
            modifyId    = OstadCode;
            description = Description;
            CB.InsertIntoUserLog(userId, DateTime.Now.ToString("HH:mm"), appId, (int)eventType, description, modifyId);
        }
Esempio n. 6
0
        private void setLog(int inquiryID, string Description, DTO.eventEnum eventType)
        {
            Business.Common.CommonBusiness CB = new Business.Common.CommonBusiness();
            int    userId;      //کاربری که لاگین کرده
            int    appId;       //کد قسمتی از برنامه که الان توش هستیم. یعنی کارگزینی  -  13
            string description; //توضیحات اختیاری
            int    modifyId;    //کد درخواست ویرایش شده. ویرایش اطلاعات فردی،اطلاعات تماس و ...

            userId      = int.Parse(Session[sessionNames.userID_Karbar].ToString());
            appId       = 10;
            modifyId    = inquiryID;
            description = Description;
            CB.InsertIntoUserLog(userId, DateTime.Now.ToString("HH:mm"), appId, (int)eventType, description, modifyId);
        }