Ejemplo n.º 1
0
 //删除
 protected void Delete_Click(object sender, EventArgs e)
 {
     try
     {
         int    id       = Convert.ToInt32(Request.QueryString["id"].ToString());
         int    attachId = mo.FindBAttachmentID(id);
         string srcPath  = at.FindPath(attachId);
         if (attachId == 0 || srcPath == "")
         {
             Alert.Show("该专著不存在版权页资料");
         }
         else
         {
             pm.DeleteFile(attachId, srcPath);
             Common.Entities.Monograph mon = mo.FindAll(id);
             mon.BAttachmentID = null;
             mo.Update(mon);
             //Alert.Show("删除成功!");
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference() + Alert.GetShowInTopReference("删除成功!"));
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
Ejemplo n.º 2
0
        private void LoadData(string strType)
        {
            if (strType == "1")
            {
                string strID = Request.QueryString["value"];//操作ID
                zlzw.BLL.CareersListBLL     careersListBLL   = new zlzw.BLL.CareersListBLL();
                zlzw.Model.CareersListModal careersListModal = careersListBLL.GetModel(int.Parse(Get_CareersID(strID)));
                drpStoreType.SelectedValue = careersListModal.DictionaryKey;           //所属门店
                txbDepartmentName.Text     = careersListModal.DepartmentName;          //招聘部门
                txbCareersTitle.Text       = careersListModal.CareersTitle;            //职位名称
                txbCareersCount.Text       = careersListModal.CareersCount.ToString(); //招聘人数
                txbWorkAdd.Text            = careersListModal.WorkAdd;                 //工作地点
                txbEducational.Text        = careersListModal.Educational;             //学历要求
                txbSalary.Text             = careersListModal.Salary;                  //月薪
                txbWorkExperience.Text     = careersListModal.WorkExperience;          //工作经验
                txbEmail.Text            = careersListModal.EMail;                     //联系邮件
                txbTel.Text              = careersListModal.Telephone;                 //联系电话
                txbContactMan.Text       = careersListModal.ContactMan;                //联系人
                txbResponsibilities.Text = careersListModal.Responsibilities;          //岗位职责
                txbQualifications.Text   = careersListModal.Qualifications;            //任职资格

                if (careersListModal.IsHot == 1)
                {
                    ckbIsHot.Checked = true;
                }
                else
                {
                    ckbIsHot.Checked = false;
                }

                ViewState["PublishDate"] = careersListModal.PublishDate.ToString();
                ToolbarText2.Text        = "编辑一个职位信息";
            }
            btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
        }
Ejemplo n.º 3
0
 //删除
 protected void Delete_Click(object sender, EventArgs e)
 {
     try
     {
         int    id       = Convert.ToInt32(Request.QueryString["id"].ToString());
         int    attachId = BLLScienceReprot.FindAttachmentid(id);
         string srcPath  = BLLAttachment.FindPath(attachId);
         if (attachId == 0 || srcPath == "")
         {
             Alert.Show("该学术报告不存在相关文档");
         }
         else
         {
             publicMethod.DeleteFile(attachId, srcPath);
             int ReportID = Convert.ToInt32(Request.QueryString["id"].ToString());
             Common.Entities.ScienceReport scienceReport = BLLScienceReprot.FindByReportID(ReportID);
             //scienceReport.AccessoryID = null;
             BLLScienceReprot.UpdateAttachment(ReportID);
             //Alert.Show("删除成功!");
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference() + Alert.GetShowInTopReference("删除成功!"));
         }
     }
     catch (Exception ex)
     {
         publicMethod.SaveError(ex, this.Request);
     }
 }
Ejemplo n.º 4
0
        private void LoadData(string strType)
        {
            if (strType == "1")
            {
                string strID = Request.QueryString["value"];//操作ID
                zlzw.BLL.DefaultPostListBLL     defaultPostListBLL   = new zlzw.BLL.DefaultPostListBLL();
                zlzw.Model.DefaultPostListModal defaultPostListModal = defaultPostListBLL.GetModel(int.Parse(strID));
                txbEnterpriseName.Text    = defaultPostListModal.EnterpriseName;              //企业名称
                drpRegion.SelectedValue   = defaultPostListModal.DictionaryListID.ToString(); //所属区域ID
                txbWorkAdd.Text           = defaultPostListModal.WorkAdd;                     //工作地点
                txbPostInfo.Text          = defaultPostListModal.PostInfo;                    //招聘职位
                txbRecruitmentNumber.Text = defaultPostListModal.RecruitmentNumber;           //招聘人数
                txbPostDemand.Text        = defaultPostListModal.PostDemand;                  //岗位要求
                txbTreatmentInfo.Text     = defaultPostListModal.TreatmentInfo;               //待遇相关
                txbOtherInfo.Text         = defaultPostListModal.OtherInfo;                   //备注信息
                if (defaultPostListModal.IsHot == 1)
                {
                    ckbIsHot.Checked = true;
                }
                else
                {
                    ckbIsHot.Checked = false;
                }

                ViewState["PublishDate"]    = defaultPostListModal.PublishDate.ToString();
                ViewState["EnterpriseGUID"] = defaultPostListModal.EnterpriseGUID.ToString();
                ToolbarText2.Text           = "编辑一个职位信息";
            }
            btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
        }
Ejemplo n.º 5
0
 //删除
 protected void Delete_Click(object sender, EventArgs e)
 {
     try
     {
         int    id       = Convert.ToInt32(Request.QueryString["id"].ToString());
         int[]  attachId = pa.FindAttachmentID(id);
         string srcPath  = at.FindPath(attachId[1]);
         if (attachId[1] == 0 || srcPath == "")
         {
             Alert.Show("该专利不存在相关文档");
         }
         else
         {
             pm.DeleteFile(attachId[1], srcPath);
             Common.Entities.Patent pat = pa.FindAll(id).FirstOrDefault();
             pat.Attachment_Patent = null;
             pa.Update(pat);
             //Alert.Show("删除成功!");
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference() + Alert.GetShowInTopReference("删除成功!"));
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
Ejemplo n.º 6
0
 //删除
 protected void Delete_Click(object sender, EventArgs e)
 {
     try
     {
         int    id       = Convert.ToInt32(Request.QueryString["id"].ToString());
         int    attachId = un.FindAttachmentID(id);
         string srcPath  = at.FindPath(attachId);
         if (attachId == 0 || srcPath == "")
         {
             Alert.Show("该考察信息不存在相关文档");
         }
         else
         {
             pm.DeleteFile(attachId, srcPath);
             Common.Entities.UnitInspect uni = un.FindInspectInfo(id, true);
             uni.AccessoryID = null;
             un.Update(uni);
             //Alert.Show("删除成功!");
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference() + Alert.GetShowInTopReference("删除成功!"));
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
Ejemplo n.º 7
0
        private void LoadData(string strType)
        {
            if (strType == "1")
            {
                string strID = Request.QueryString["value"];//操作ID
                zlzw.BLL.JobListBLL     jobListBLL   = new zlzw.BLL.JobListBLL();
                zlzw.Model.JobListModel jobListModal = jobListBLL.GetModel(int.Parse(strID));
                txbJobName.Text          = jobListModal.JobName;//职位名称
                drpJobType.SelectedValue = jobListModal.JobTypeID.ToString();
                if (jobListModal.IsHot == 1)
                {
                    ckbIsHot.Checked = true;
                }
                else
                {
                    ckbIsHot.Checked = false;
                }
                if (jobListModal.IsEnable == 1)
                {
                    ckbIsEnable.Checked = true;
                }
                else
                {
                    ckbIsEnable.Checked = false;
                }

                ViewState["PublishDate"] = jobListModal.PublishDate.ToString();
                ToolbarText2.Text        = "编辑一个岗位";
            }
            btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
        }
Ejemplo n.º 8
0
        protected void btnSaveRefresh_Click(object sender, EventArgs e)
        {
            OperationResult        objOperationResult = new OperationResult();
            ordenreporteDto        oordenreporteDto   = null;
            List <ordenreporteDto> ListaOrdem         = new List <ordenreporteDto>();
            int n = 0;

            //Eliminar Antiguos Registros
            oOrganizationBL.DeleteOrdenReportes(ref objOperationResult, Request.QueryString["v_OrganizationId"].ToString());
            foreach (var row in grdData.Rows)
            {
                if (((FineUI.CheckBoxField)grdData.FindColumn("b_Seleccionar")).GetCheckedState(n))
                {
                    oordenreporteDto                   = new ordenreporteDto();
                    oordenreporteDto.i_Orden           = int.Parse(((System.Web.UI.WebControls.TextBox)row.FindControl("i_Orden")).Text);
                    oordenreporteDto.v_OrganizationId  = Request.QueryString["v_OrganizationId"].ToString();
                    oordenreporteDto.v_NombreReporte   = row.Values[1];
                    oordenreporteDto.v_ComponenteId    = row.Values[2];
                    oordenreporteDto.v_NombreCrystal   = row.Values[4] == null ? "" : row.Values[4];
                    oordenreporteDto.i_NombreCrystalId = row.Values[5] == null || row.Values[5] == "" ? (int?)null : int.Parse(row.Values[4]);
                    ListaOrdem.Add(oordenreporteDto);
                }
                n++;
            }
            n = 0;
            oOrganizationBL.AddOrdenReportes(ref objOperationResult, ListaOrdem, ((ClientSession)Session["objClientSession"]).GetAsList());
            ActiveWindow.GetConfirmHideReference();
        }
Ejemplo n.º 9
0
 //密码更改窗口关闭
 protected void Window1_Close(object sender, WindowCloseEventArgs e)
 {
     if (e.CloseArgument.StartsWith("密码已更改"))
     {
         PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference());
         Response.Redirect("login.aspx");
     }
 }
Ejemplo n.º 10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     checkSession();
     if (!IsPostBack)
     {
         Button_Cancel.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         LoadData();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     // CalendarId y ProtocolId
     if (!IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         LoadData();
         btnNew.OnClientClick   = winEdit.GetSaveStateReference(hfRefresh.ClientID) + winEdit.GetShowReference(string.Format("FRM001A.aspx?Mode=NewChildren&i_GroupId={0}", txtParameterId.Text));
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         btnNew.OnClientClick = winEdit.GetSaveStateReference(hfRefresh.ClientID) + winEdit.GetShowReference("FRM005C.aspx?Mode=New&nodeId=" + NodeId.ToString());
         BindGrid();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         loadCombo();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
         //btnCie10.OnClientClick = WindowCie10.GetSaveStateReference(hfRefresh.ClientID) + WindowCie10.GetShowReference("FRM033F.aspx?Mode=New");
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         OperationResult objOperationResult = new OperationResult();
         Utils.LoadDropDownList(ddlTipoOperacion, "Value1", "Id", _objSystemParameterBL.GetSystemParameterForCombo(ref objOperationResult, 177), DropDownListAction.Select);
         LoadData();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string strType = Request.QueryString["Type"];
         LoadData(strType);
     }
     btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     Panel2.Title           = DateTime.Now.ToString("yyyy年MM月dd日");
 }
Ejemplo n.º 18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Session["ListaEmpresas"] = null;
         LoadComboBox();
         LoadData();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Session["objlistSystemUserGlobalProfileDtoDelete"] = _listSystemUserGlobalProfileDtoDelete;
         Session["objlistSystemUserGlobalProfileDtoUpdate"] = _listSystemUserGlobalProfileDtoUpdate;
         LoadTreeGlobalPermissions();
         LoadData();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     }
 }
Ejemplo n.º 20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //绑定关闭按钮事件
         Button_Close.OnClientClick = ActiveWindow.GetConfirmHideReference();
         ViewState["id"]            = Request.QueryString["id"];
         bindDepartToDropDownList();
         loadEvaluated();
     }
 }
Ejemplo n.º 21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                btnNew.OnClientClick = winEdit.GetSaveStateReference(hfRefresh.ClientID) + winEdit.GetShowReference("FRM035C_1.aspx?Mode=New");

                LoadData();
                LoadCombos();
                BindGrid(ddlLocation.SelectedValue);
                btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
            }
        }
Ejemplo n.º 22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         LoadData();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
         //_warehouseList = new List<nodeorganizationlocationwarehouseprofileDto>();
         //Session["sobjwarehouseList"] = _warehouseList;
         //int systemUserId = -1;
         //if (Request.QueryString["systemUserId"] != null) systemUserId = int.Parse(Request.QueryString["systemUserId"].ToString());
         //btnNew.OnClientClick = winEdit.GetSaveStateReference(hfRefresh.ClientID) + winEdit.GetShowReference("FRM002B.aspx?Mode=New&systemUserId=" + systemUserId.ToString());
     }
 }
Ejemplo n.º 23
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         btnCIIU.OnClientClick = winEdit.GetSaveStateReference(hfRefresh.ClientID) + winEdit.GetShowReference("FRM035A_1.aspx?Mode=New");
         if (Request.QueryString["v_OrganizationId"] != null)
         {
             Session["OrganizationId"] = Request.QueryString["v_OrganizationId"].ToString();
         }
         LoadCombos();
         LoadData();
         btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
         ViewState["isDeleted"] = false;
     }
 }
Ejemplo n.º 24
0
 private void LoadData(string strType)
 {
     if (strType == "1")
     {
         string strID = Request.QueryString["value"];//操作ID
         zlzw.BLL.AdminListBLL     adminListBLL   = new zlzw.BLL.AdminListBLL();
         zlzw.Model.AdminListModel adminListModel = adminListBLL.GetModel(int.Parse(strID));
         txbAdminName.Text        = adminListModel.AdminName;     //用户名称
         txbAdminPassword.Text    = adminListModel.AdminPassword; //用户密码
         ViewState["PublishDate"] = adminListModel.PublishDate.ToString();
         ViewState["AdminGUID"]   = adminListModel.AdminGUID.ToString();
         ToolbarText2.Text        = "编辑一个管理员账号";
     }
     btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
 }
Ejemplo n.º 25
0
 private void LoadData(string strType)
 {
     if (strType == "1")
     {
         string strID = Request.QueryString["value"];//操作ID
         zlzw.BLL.DictionaryListBLL     dictionaryListBLL   = new zlzw.BLL.DictionaryListBLL();
         zlzw.Model.DictionaryListModel dictionaryListModel = dictionaryListBLL.GetModel(int.Parse(strID));
         txbRegionName.Text       = dictionaryListModel.DictionaryValue; //地区名称
         txbIndexRegion.Text      = dictionaryListModel.DictionaryKey;   //地区索引
         txbRegionDesc.Text       = dictionaryListModel.DictionaryDesc;  //地区简介
         ViewState["PublishDate"] = dictionaryListModel.PublishDate.ToString();
         ToolbarText2.Text        = "编辑一个地区信息";
     }
     btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
 }
Ejemplo n.º 26
0
 private void LoadData(string strType)
 {
     if (strType == "1")
     {
         string strID = Request.QueryString["value"];//操作ID
         zlzw.BLL.DictionaryListBLL     dictionaryListBLL   = new zlzw.BLL.DictionaryListBLL();
         zlzw.Model.DictionaryListModel dictionaryListModel = dictionaryListBLL.GetModel(int.Parse(strID));
         txbNewsTypeIndex.Text    = dictionaryListModel.DictionaryKey;   //新闻类型索引
         txbNewsTypeName.Text     = dictionaryListModel.DictionaryValue; //新闻类型名称
         txbOrderNumber.Text      = dictionaryListModel.OrderNumber.ToString();
         txbDictionaryDesc.Text   = dictionaryListModel.DictionaryDesc;
         ViewState["PublishDate"] = dictionaryListModel.PublishDate.ToString();
         ToolbarText2.Text        = "编辑一个新闻类型";
     }
     btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
 }
Ejemplo n.º 27
0
        //删除
        protected void Delete_Click(object sender, EventArgs e)
        {
            FineUI.LinkButton lb = (FineUI.LinkButton)sender;
            try
            {
                int id       = Convert.ToInt32(Request.QueryString["id"].ToString());
                int attachId = ach.FindAttachment(id);
                Common.Entities.Achievement model = ach.Findmodel(id);
                switch (lb.ID)
                {
                case "Delete":
                    attachId = model.AttachmentID == null ? 0 : model.AttachmentID.Value;
                    break;

                case "DelOpinionPage":
                    attachId = model.OpinionPage == null ? 0 : model.OpinionPage.Value;
                    break;

                case "DelMemberPage":
                    attachId = model.MemberPage == null ? 0 : model.MemberPage.Value;
                    break;

                case "DelSealPage":
                    attachId = model.SealPage == null ? 0 : model.SealPage.Value;
                    break;
                }
                string srcPath = at.FindPath(attachId);
                if (attachId == 0 || srcPath == "")
                {
                    Alert.Show("该成果不存在相关文档");
                }
                else
                {
                    pm.DeleteFile(attachId, srcPath);
                    Common.Entities.Achievement caa = ach.FindAll(id);
                    caa.AttachmentID = null;
                    ach.Update(caa);
                    PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference() + Alert.GetShowInTopReference("删除成功!"));
                }
            }
            catch (Exception ex)
            {
                pm.SaveError(ex, this.Request);
            }
        }
Ejemplo n.º 28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.Cookies["AdminID"] == null && Request.Cookies["AdminName"] == null)
         {
             Response.Write("<script type='text/javascript'>window.parent.location='login.aspx'</script>");
             return;
         }
         else
         {
             labPublishID.Text = Request.Cookies["AdminName"].Value;
         }
         string strType = Request.QueryString["Type"];
         Load_NewsTypeList();//加载新闻类型
         LoadData(strType);
     }
     btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
     Panel2.Title           = DateTime.Now.ToString("yyyy年MM月dd日");
 }
Ejemplo n.º 29
0
 private void LoadData(string strType)
 {
     if (strType == "1")
     {
         string strID = Request.QueryString["value"];//操作ID
         zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
         DataTable dt = ventureStarListBLL.GetList("VentureStarGUID='" + strID + "'").Tables[0];
         zlzw.Model.VentureStarListModal ventureStarListModal = ventureStarListBLL.GetModel(int.Parse(dt.Rows[0]["VentureStarID"].ToString()));
         drpRegionList.SelectedValue   = ventureStarListModal.Other01.ToString();
         drpStoreType.SelectedValue    = ventureStarListModal.DictionaryKey;      //所属门店
         txbVentureStarName.Text       = ventureStarListModal.VentureStarName;    //创业明星姓名
         FCKeditor1.Value              = ventureStarListModal.VentureStarContent; //创业明星介绍
         labPreviweImg.ImageUrl        = ventureStarListModal.VentureStarImage.Split('~')[1];
         ViewState["VentureStarImage"] = ventureStarListModal.VentureStarImage;   //创业明星图片地址
         ViewState["PublishDate"]      = ventureStarListModal.PublishDate.ToString();
         ViewState["VentureStarGUID"]  = ventureStarListModal.VentureStarGUID.ToString();
         ToolbarText2.Text             = "编辑一个创业明星";
     }
     btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
 }
Ejemplo n.º 30
0
        private void LoadData(string strType)
        {
            if (strType == "1")
            {
                string strID = Request.QueryString["value"];//操作ID
                zlzw.BLL.StoreStatisticsListBLL     storeStatisticsListBLL   = new zlzw.BLL.StoreStatisticsListBLL();
                zlzw.Model.StoreStatisticsListModal storeStatisticsListModal = storeStatisticsListBLL.GetModel(int.Parse(Get_StoreStatisticsID(strID)));
                drpStoreDictionaryKey.SelectedValue = storeStatisticsListModal.StoreDictionaryKey;             //所属店铺
                drpDictionaryKey.SelectedValue      = storeStatisticsListModal.DictionaryKey;                  //所属指标
                txbStoreStatisticsDate.Text         = storeStatisticsListModal.StoreStatisticsDate.ToString(); //评比日期
                txbIndexValue.Text           = storeStatisticsListModal.IndexValue;                            //指标数值
                txbStoreStatisticsOrder.Text = storeStatisticsListModal.StoreStatisticsOrder.ToString();       //排序序号

                ViewState["StoreStatisticsDate"] = storeStatisticsListModal.StoreStatisticsDate.ToString();
                ViewState["PublishDate"]         = storeStatisticsListModal.PublishDate.ToString();
                ViewState["StoreStatisticsGUID"] = storeStatisticsListModal.StoreStatisticsGUID.ToString();
                ToolbarText2.Text = "编辑一个指标评比";
            }
            btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
        }