public void getEventList()
    {
        //排序字段
        string strSortField = RequestClass.GetString("sortfield").Trim().Replace("'", "");
        //排序规则
        string strSortRule    = RequestClass.GetString("sortrule").Trim().Replace("'", "");
        int    intCurrentPage = RequestClass.GetInt("page", 1);//当前页
        //排序字段的样式
        string orderClass = String.Empty;

        if (string.IsNullOrEmpty(strSortField))
        {
            strSortField = "EV_Update_dt";
            strSortRule  = "desc";
            orderClass   = "taxisDown";
        }
        else
        {
            if (strSortRule.Equals("asc"))
            {
                orderClass = "taxisUp";
            }
            else
            {
                orderClass = "taxisDown";
            }
        }
        BL_Event Event = new BL_Event();
        string   HTML  = Event.getEventList(Interna, UserSession, "EV_Code", "*", strSortField, strSortRule, intCurrentPage, 5, orderClass);

        Response.Write(HTML);
    }
    public static int EventRun(int CG_Code)
    {
        BL_Event Ev  = new BL_Event();
        int      err = Ev.EventRun(CG_Code, AU_Type, AU_AD_OM_Code);

        return(err);
    }
Exemple #3
0
    public static MD_SuccMatrixList getSuccMatrx_s(int Code, string Code_s)
    {
        BL_Event       Event = new BL_Event();
        CT_Succ_Matrix succ  = new CT_Succ_Matrix {
            PSM_Code_s = Code_s, SMV_CG_Code = Code, SMV_Type = 2
        };

        return(Event.getSuccMatrxList(Inter, succ));
    }
    public void enent_Delete()
    {
        int EV_Code = RequestClass.GetInt("id", 0);

        if (0 >= EV_Code)
        {
            Response.Write("-2");              //参数 没有全填写
        }
        else
        {
            BL_Event events = new BL_Event();
            int      i      = events.DeleteEvent(EV_Code);
            Response.Write(i);
        }
    }
Exemple #5
0
    private string getGenre()
    {
        BL_Event     Event = new BL_Event();
        MD_GenreList Genre = Event.getGenre(UserSession.User.UG_UType, UserSession.DealerEmpl.DE_AD_OM_Code);

        if (Genre != null && Genre.GenreList.Count > 0)
        {
            StringBuilder str = new StringBuilder();
            for (int i = 0; i < Genre.GenreList.Count; i++)
            {
                str.Append("<option value='" + Genre.GenreList[i].EG_Code + "'>" + Genre.GenreList[i].EG_Desc + "</option>");
            }
            return(str.ToString());
        }
        return("");
    }
Exemple #6
0
    private string getCamReprotList()
    {
        BL_Event      Event  = new BL_Event();
        MD_ReportList Report = Event.getEventReprotList(Interna);

        if (Report != null && Report.CT_Reports_List.Count > 0)
        {
            StringBuilder str = new StringBuilder();
            for (int i = 0; i < Report.CT_Reports_List.Count; i++)
            {
                str.Append("<option value='" + Report.CT_Reports_List[i].RP_Code + "'>" + Report.CT_Reports_List[i].RP_Name_EN + "</option>");
            }
            return(str.ToString());
        }
        return("");
    }
Exemple #7
0
    private string getSuccMatrxList()
    {
        BL_Event          Event      = new BL_Event();
        MD_SuccMatrixList SuccMatrix = Event.getSuccMatrxList(Interna);

        if (SuccMatrix != null && SuccMatrix.SuccMatrixList.Count > 0)
        {
            StringBuilder str = new StringBuilder();
            for (int i = 0; i < SuccMatrix.SuccMatrixList.Count; i++)
            {
                str.Append("<option value='" + SuccMatrix.SuccMatrixList[i].PSM_Code + "'>" + SuccMatrix.SuccMatrixList[i].PSM_Desc_EN + "</option>");
            }
            return(str.ToString());
        }
        return("");
    }
    public void event_Modify()
    {
        CT_Events Ev = new CT_Events();

        Ev.EV_UType       = UserSession.User.UG_UType;
        Ev.EV_AD_OM_Code  = UserSession.DealerEmpl.DE_AD_OM_Code;
        Ev.EV_Created_By  = UserSession.User.AU_Code;
        Ev.EV_Updated_By  = UserSession.User.AU_Code;
        Ev.EV_Title       = GlobalObject.unescape(RequestClass.GetString("EV_Title")).Replace("'", "").Trim();
        Ev.EV_Share       = System.Convert.ToBoolean(RequestClass.GetInt("EV_Share", 0));
        Ev.EV_Active_Tag  = RequestClass.GetInt("EV_Active_Tag", 0);
        Ev.EV_Desc        = GlobalObject.unescape(RequestClass.GetString("EV_Desc")).Replace("'", "").Trim();
        Ev.EV_Type        = RequestClass.GetInt("EV_Type", 0);
        Ev.EV_RP_Code     = RequestClass.GetInt("EV_RP_Code", 0);
        Ev.EV_Start_dt    = RequestClass.GetFormDateTime("EV_Start_dt");
        Ev.EV_End_dt      = RequestClass.GetFormDateTime("EV_End_dt");
        Ev.EV_Method      = RequestClass.GetString("EV_Method");
        Ev.EV_Whom        = RequestClass.GetInt("EV_Whom", 0);
        Ev.EV_Mess_Type   = RequestClass.GetInt("EV_Mess_Type", 0);
        Ev.EV_EG_Code     = RequestClass.GetInt("EV_EG_Code", 1);
        Ev.EV_RSVP        = System.Convert.ToBoolean(RequestClass.GetInt("EV_RSVP", 0));
        Ev.EV_Act_S_dt    = RequestClass.GetFormDateTime("EV_Act_S_dt");
        Ev.EV_Act_E_dt    = RequestClass.GetFormDateTime("EV_Act_E_dt");
        Ev.EV_Respnsible  = GlobalObject.unescape(RequestClass.GetString("EV_Respnsible")).Replace("'", "").Trim();
        Ev.EV_Tools       = GlobalObject.unescape(RequestClass.GetString("EV_Tools")).Replace("'", "").Trim();
        Ev.EV_Budget      = RequestClass.GetFormDecimal("EV_Budget", 0);
        Ev.EV_Succ_Matrix = GlobalObject.unescape(RequestClass.GetString("EV_Succ_Matrix")).Replace("'", "").Trim();
        Ev.EV_Filename    = GlobalObject.unescape(RequestClass.GetString("EV_Filename")).Replace(",", "").Trim();
        Ev.EV_TrackFlag   = false;
        Ev.EV_LastRun     = Ev.EV_Act_S_dt;
        Ev.EV_Code        = RequestClass.GetInt("EV_Code", 0);
        Ev.PL_Code_List   = RequestClass.GetString("PL_Code_List");
        Ev.Pl_Val_List    = GlobalObject.unescape(RequestClass.GetString("PL_Val_List")).Replace("'", "").Trim();
        string            o_succ = GlobalObject.unescape(RequestClass.GetString("o_succ")).Replace("'", "").Trim();
        MD_SuccMatrixList o      = new MD_SuccMatrixList();

        o.SuccMatrixList = JsonConvert.DeserializeObject <List <CT_Succ_Matrix> >(o_succ);
        BL_Event events = new BL_Event();
        int      i      = events.ModifyEvent(Ev, o);

        Response.Write(i);
    }
Exemple #9
0
    private void Init_Page()
    {
        int EV_Code = RequestClass.GetInt("id", 0);

        if (EV_Code <= 0)
        {
            Event.EV_Start_dt = DateTime.Now;
            Event.EV_End_dt   = DateTime.Now.AddDays(5);
            Event.EV_Act_S_dt = DateTime.Now;
            Event.EV_Act_E_dt = DateTime.Now.AddDays(5);
        }
        else
        {
            BL_Event Bl_event = new BL_Event();
            Event = Bl_event.getEvents(EV_Code);
            if (Event == null || string.IsNullOrEmpty(Event.EV_Title))
            {
                string str = "<script language=javascript>history.go(-1);</script>";
                Page.RegisterClientScriptBlock("key", str);
            }
        }
    }
Exemple #10
0
    public static MD_SuccMatrixList getSuccMatrxList_s()
    {
        BL_Event Event = new BL_Event();

        return(Event.getSuccMatrxList(Inter));
    }
Exemple #11
0
    public static MD_EventToolsList getEventToolsList()
    {
        BL_Event Event = new BL_Event();

        return(Event.getEventToolsList(Inter));
    }