Example #1
0
 //重置
 protected void btnReset_Click(object sender, EventArgs e)
 {
     txtPlatformName.Reset();
     DropDownListPlatformRank.Reset();
     DropDownListAgreeUnit.Reset();
     DropDownListPlatformType.Reset();
     DropDownList_SecrecyLevel.Reset();
     DatePicker_AgreeTime.Reset();
     //lby↓
     txtAgreeNumber.Reset();
     txtAgreeExpenditure.Reset();
     txtPlatformPrincipal.Reset();
     txtPlatformMember.Reset();
     txtPlatformManagement.Reset();
 }
Example #2
0
        /*protected void btnSave_Click(object sender, EventArgs e)
         * {
         *  try
         *  {
         *      if (BLLUser.FindByUserName(txtBorrowPeople.Text) == null)
         *      {
         *          Alert.ShowInTop("借阅人不存在,请重新输入!");
         *          return;
         *      }
         *      if (DatePicker_BorrowTime.SelectedDate > DatePicker_ReturnTime.SelectedDate)
         *      {
         *          Alert.ShowInTop("结束日期应该大于开始日期!");
         *          return;
         *      }
         *      int LibraryRecordID = Convert.ToInt32(Session["LibraryRecordID"]);
         *      NewLibraryRecord = BLLLibraryRecord.FindByLibreryRecordID(LibraryRecordID);
         *      NewLibraryRecord = FindLibraryRecord();
         *      if (NewLibraryRecord != null)
         *      {
         *          BLLLibraryRecord.Update(NewLibraryRecord);
         *          Alert.ShowInTop("保存成功!");
         *      }
         *      else
         *          Alert.ShowInTop("保存失败!");
         *      PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideRefreshReference());
         *  }
         *  catch (Exception ex)
         *  {
         *      BLCommon.PublicMethod pm = new BLCommon.PublicMethod();
         *      pm.SaveError(ex, this.Request);
         *  }
         * }*/

        protected void btnReSet_Click(object sender, EventArgs e)
        {
            txtPactNum.Reset();
            txtPactName.Reset();
            txtPactType.Reset();
            DatePicker_StartTime.Reset();
            DatePicker_EndTime.Reset();
            DropDownList_Project.Reset();
            DropDownList_SecrecyLevel.Reset();
            txtChargePerson.Reset();
            txtPactMoney.Reset();
            txtRealMoney.Reset();
            txtPactCompletion.Reset();
            txtIsExistingFile.Reset();
            txtFileNum.Reset();
            //txtPactNum.Reset();
            //txtBorrowPeople.Reset();
            //DatePicker_BorrowTime.Reset();
            //DatePicker_ReturnTime.Reset();
            //DropDownList_SecrecyLevel.SelectedValue = "1";
        }