医药CRM系统开发

自已做医药CRM系统有四年了,终于可以算个产品了,努力市场化,今年重种将医药营销的理念加入CRM

导航

session访问

Posted on 2007-02-26 06:41  hhq80  阅读(223)  评论(0编辑  收藏  举报

   ResinSession so=(ResinSession)Session["obj"];
    if ( so != null)
   {
    proxyid= so.proxyid;
   }
   else
   {
    Response.Redirect(Application["appPath"] + "logout.aspx");
   }

=====
   Session["_masterYear"]=DropDownList1.SelectedItem.Value;
   Session["_masterMonth"]=DropDownList2.SelectedItem.Value;
取得
   if(Session["_masterYear"]!=null)
   {
    string year=Session["_masterYear"].ToString();
    string month=Session["_masterMonth"].ToString();
    //Label3.Text=Session["_masterYear"].ToString()+Session["_masterMonth"].ToString();
    DataGrid1.DataSource =ProxyQuerySalesRPT.GetSalesDetails(nbbm,year,month,proxy);
    DataGrid1.DataBind();
   }
   else
   {
    Response.Write("<SCRIPT LANGUAGE=javascript> alert(\"当前页面的父面页已过期,请关闭当前窗口,并刷新父页面!\");</SCRIPT>");
 
   }