コード例 #1
0
        int admiw_OpenSign;             //详细信息窗口标记,0为未打开过!
        public OrdinaryUsers_Databorrow()
        {
            InitializeComponent();
            ApplyTableSql   = "select * from ApplyData where Ryid='" + UITemp.UserInfoTemp.Ryid + "'";
            HistoryTableSql = "select * from DataLend where RyId='" + UITemp.UserInfoTemp.Ryid + "'";


            InitTabelToApply();   //申请历史表格初始化
            InitTableToHistory(); //借阅历史表格初始化
            TableToApply.DataTableSelect(ApplyTableSql, "更新");
            Initttalbm();
            ApplicationHistoryCount.Content = TableToApply.Rows;//申请总计
            TableToHistory.DataTableSelect(HistoryTableSql, "更新");
            Inittthlbm();
            BorrowHistoryCount.Content = TableToHistory.Rows; //借阅历史总计
            UpDateRLR(1);                                     //更新左下侧操作历史
        }
コード例 #2
0
        int mmiw_OpenSign = 0;        //详细信息窗口标记,0为未打开过!
        public OrdinaryUsers_MaintenanceApplication()
        {
            InitializeComponent();
            ApplyTableSql   = "select * from ApplyMaintain where Ryid='" + UITemp.UserInfoTemp.Ryid + "'";
            HistoryTableSql = "select * from ArmsRepair where RyId='" + UITemp.UserInfoTemp.Ryid + "'";


            InitTabelToApply();   //申请历史表格初始化
            InitTableToHistory(); //借阅历史表格初始化
            TableToApply.DataTableSelect(ApplyTableSql, "更新");
            Initttalbm();
            ApplicationHistoryCount.Content = TableToApply.Rows;//申请总计
            TableToHistory.DataTableSelect(HistoryTableSql, "更新");
            Inittthlbm();
            MaintenanceHistoryCount.Content = TableToHistory.Rows; //借阅历史总计
            UpDateRLR(1);                                          //更新左下侧操作历史
        }