/// <summary>
        /// 增删改TABLE_CYSMS
        /// op_TABLE_CYSMS
        /// 参数类名:TABLE_CYSMSModel
        /// </summary>
        /// <returns>返回数</returns>
        public static int op_TABLE_CYSMS(
            CykjSoft.Bean.UserBean userBean
            , XASYU.MODEL.TABLE_CYSMSModel TABLE_CYSMS
            )
        {
            int    iRESULT = 0;
            int    iERRCD  = 0;
            string sERRMSG = String.Empty;

            try
            {
                XASYU.DBBusiness.DataBaseManager.op_TABLE_CYSMS(
                    userBean.YHDLM //用户登陆名
                    , ref iRESULT
                    , ref iERRCD
                    , ref sERRMSG
                    , DataOperationTypeHelper.GetOperationString(TABLE_CYSMS.OpType)
                    , TABLE_CYSMS.CySms_id  //CySms_id
                    , TABLE_CYSMS.CySms_nr  //CySms_nr
                    , TABLE_CYSMS.CySms_lx  //CySms_lx
                    );
            }
            catch (Exception ex)
            {
                iRESULT = -1;
                ex.ToString();
            }
            return(iRESULT);
        }
Exemple #2
0
 protected override void OnLoad(EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         if (Request.QueryString["CYSMS_ID"] != null && Request.QueryString["CYSMS_ID"].ToString().Trim() != "")
         {
             XASYU.MODEL.TABLE_CYSMSModel temp = new XASYU.MODEL.TABLE_CYSMSModel();
             temp.CySms_id = int.Parse(Request.QueryString["CYSMS_ID"].ToString().Trim());
             int     iCount = -1;
             DataSet ds     = XASYU.BLL.DataBaseQuery.query_TABLE_CYSMS(userBean, temp, ref iCount, 0, 10);
             if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
             {
                 DataRow dr = ds.Tables[0].Rows[0];
                 this.hiddenCySms_id.Text = dr["CySms_id"].ToString();
                 this.txtCySms_nr.Text    = dr["CySms_nr"].ToString();
                 this.txtCySms_lx.Text    = dr["CySms_lx"].ToString();
             }
             else
             {
                 //this.hiddenCySms_id.Value ="0" ;
             }
         }
         else
         {
             //this.hiddenCySms_id.Value ="0" ;
         }
     }
 }
 /// <summary>
 /// 查询TABLE_CYSMS
 /// query_TABLE_CYSMS
 /// 参数类名:TABLE_CYSMSModel
 /// </summary>
 /// <returns>DataSet</returns>
 public static DataSet query_TABLE_CYSMS(
     CykjSoft.Bean.UserBean userBean
     , XASYU.MODEL.TABLE_CYSMSModel TABLE_CYSMS
     , ref int V_ITOTALCOUNT //记录数
     , int V_SSTARTINDEX     //开始索引
     , int V_SPERPAGESIZE    //页大小
     )
 {
     return(XASYU.DBBusiness.DataBaseQuery.query_TABLE_CYSMS(
                userBean.YHDLM          //用户登陆名
                , ref V_ITOTALCOUNT     //记录数
                , V_SSTARTINDEX         //开始索引
                , V_SPERPAGESIZE        //页大小
                , TABLE_CYSMS.CySms_id  //CySms_id
                , TABLE_CYSMS.CySms_nr  //CySms_nr
                , TABLE_CYSMS.CySms_lx  //CySms_lx
                , TABLE_CYSMS.StartDate //开始时间
                , TABLE_CYSMS.EndDate   //结束时间
                ));
 }