Exemplo n.º 1
0
 public static ModulePermission ModulePermission_SelectByp_gid(string p_gid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.ModulePermission_SelectByp_gid(p_gid));
     }
 }
Exemplo n.º 2
0
        public bool addNewEquipments()
        {
            string quary  = "exec AddEquipment '" + this._equipID + "','" + this._equipName + "'," + this._price;
            bool   result = new SystemDAL().executeNonQueryS(quary);

            return(result);
        }
Exemplo n.º 3
0
        public bool deleteAttendance()
        {
            string quary  = "exec DeleteAattendance '" + this.attendanceID + "'";
            bool   result = new SystemDAL().executeNonQueryS(quary);

            return(result);
        }
        public bool updatePayment()
        {
            string quary  = "exec updatepayments '" + this.paymentID + "','" + this.dueDate + "','" + this.paidDate + "','" + this.paymentStatus + "'," + this.total + ",'" + this.cid + "','" + this.fn + "'";
            bool   result = new SystemDAL().executeNonQueryS(quary);

            return(result);
        }
Exemplo n.º 5
0
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            int docID = Convert.ToInt32(txtID.Text);
            // BIZ.Doctor doctor = db.Doctor.Where(d => d.ID == docID).FirstOrDefault();
            // doctor.ID = docID;
            // doctor.Name = txtName.Text;
            //// doctor.Specialization = txtSpecilization.Text;
            // doctor.Qualification = txtQulalification.Text;
            // doctor.Fee = Convert.ToDecimal(txtFee.Text);
            // doctor.Contact = Convert.ToInt32(txtContact.Text);

            // db.Doctor.Attach(doctor);
            // var entry = db.Entry(doctor);
            // entry.State = System.Data.Entity.EntityState.Modified;
            // var res = db.SaveChanges();

            string query = "updateDoc '" + docID + "', '" + txtName.Text + "','" + txtQulalification.Text + "','" + txtContact.Text + "','" + txtFee.Text + "','" + cmbSpecilization.SelectedValue + "'";
            bool   res   = new SystemDAL().executeNonQuerys(query);

            if (res == true)
            {
                MessageBox.Show("Success");
            }
            else
            {
                MessageBox.Show("Failed");
            }
        }
Exemplo n.º 6
0
 /// <summary>
 /// 查询单个用户
 /// </summary>
 /// <param name="u_gid"></param>
 /// <returns></returns>
 public static User User_SelectByu_gid(string u_gid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_SelectByu_gid(u_gid));
     }
 }
Exemplo n.º 7
0
 public static int User_DeleteByu_gid(string u_gid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_DeleteByu_gid(u_gid));
     }
 }
Exemplo n.º 8
0
 /// <summary>
 /// 分页查询角色权限 所有的
 /// </summary>
 /// <param name="cloumns"></param>
 /// <param name="pageIndex"></param>
 /// <param name="pageSize"></param>
 /// <param name="orderBy"></param>
 /// <param name="where"></param>
 /// <param name="rowCount"></param>
 /// <returns></returns>
 public static List <Role_ModualPermission_Mapping> Role_ModualPermission_Mapping_SelectPage(string cloumns, int pageIndex, int pageSize, string orderBy, string where, out int rowCount)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_ModualPermission_Mapping_SelectPage(cloumns, pageIndex, pageSize, orderBy, where, out rowCount));
     }
 }
Exemplo n.º 9
0
 /// <summary>
 /// 更新角色权限
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public static int Role_ModualPermission_Mapping_UpdateByr_p_id(Role_ModualPermission_Mapping obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_ModualPermission_Mapping_UpdateByr_p_id(obj));
     }
 }
Exemplo n.º 10
0
 /// <summary>
 /// 插入角色权限
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public static int Role_ModualPermission_Mapping_Insert(Role_ModualPermission_Mapping obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_ModualPermission_Mapping_Insert(obj));
     }
 }
Exemplo n.º 11
0
 /// <summary>
 /// 查询单条角色权限
 /// </summary>
 /// <param name="r_p_id">id主键</param>
 /// <returns></returns>
 public static Role_ModualPermission_Mapping Role_ModualPermission_Mapping_SelectByr_p_id(int r_p_id)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_ModualPermission_Mapping_SelectByr_p_id(r_p_id));
     }
 }
Exemplo n.º 12
0
 /// <summary>
 /// 删除角色权限
 /// </summary>
 /// <param name="r_gid">角色gid</param>
 /// <param name="p_gid">权限gid</param>
 /// <returns></returns>
 public static int Role_ModualPermission_Mapping_DeleteByr_gidAndp_gid(string r_gid, string p_gid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_ModualPermission_Mapping_DeleteByr_gidAndp_gid(r_gid, p_gid));
     }
 }
Exemplo n.º 13
0
 /// <summary>
 /// 查询角色对应的 某个模块下拥有的权限
 /// </summary>
 /// <param name="rgid">角色gid</param>
 /// <param name="mgid">模块gid</param>
 /// <returns></returns>
 public static List <ModulePermission> ModulePermission_SelectModulePerByRoleGid(string rgid, string mgid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.ModulePermission_SelectModulePerByRoleGid(rgid, mgid));
     }
 }
Exemplo n.º 14
0
 public static List <ModulePermission> ModulePermission_SelectPage(SystemPermissionSearchInfo search, int pageIndex, int pageSize, out int rowCount)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.ModulePermission_SelectPage("*", pageIndex, pageSize, search.DefaultOrder, search.ToWhereString(), out rowCount));
     }
 }
Exemplo n.º 15
0
 public static List <User_Role_Mapping> User_Role_Mapping_SelectByu_gid(string u_gid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_Role_Mapping_SelectByu_gid(u_gid));
     }
 }
Exemplo n.º 16
0
 public static int Role_Insert(Role obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_Insert(obj));
     }
 }
Exemplo n.º 17
0
 public static int User_Role_Mapping_DeleteByr_gidAndu_gid(string r_gid, string u_gid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_Role_Mapping_DeleteByr_gidAndu_gid(r_gid, u_gid));
     }
 }
Exemplo n.º 18
0
 public static int Role_DeleteByr_gid(string obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_DeleteByr_gid(obj));
     }
 }
Exemplo n.º 19
0
 public static int User_UpdateByu_gid(User obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_UpdateByu_gid(obj));
     }
 }
Exemplo n.º 20
0
 public static int Role_UpdateByr_gid(Role obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_UpdateByr_gid(obj));
     }
 }
Exemplo n.º 21
0
 public static List <User> User_SelectPage(SystemUserSearchInfo search, int pageIndex, int pageSize, out int rowCount)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_SelectPage("*", pageIndex, pageSize, search.DefaultOrder, search.ToWhereString(), out rowCount));
     }
 }
Exemplo n.º 22
0
 public static Role Role_SelectByr_gid(string r_gid)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.Role_SelectByr_gid(r_gid));
     }
 }
        public bool createPaymentbalance()
        {
            string quary  = "exec Addoutstandingbalance '" + this._BalcID + "','" + this._PaymentID + "','" + this._Fn + "','" + this._Feesmode + "','" + this._PaidDate + "','" + this._Total + "','" + this._Paid + "'," + this._Balance;
            bool   result = new SystemDAL().executeNonQueryS(quary);

            return(result);
        }
Exemplo n.º 24
0
 public static int User_Role_Mapping_Insert(User_Role_Mapping obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_Role_Mapping_Insert(obj));
     }
 }
Exemplo n.º 25
0
        public Drug_Edit(int id)
        {
            InitializeComponent();
            DID = id;
            cmbCategory.ItemsSource = db.Drug_Category.ToList();


            var row = db.Drug_Inventory.Find(id);

            txtName.Text              = row.Name;
            txtDiscription.Text       = row.Description;
            cmbCategory.SelectedValue = row.Drug_Category;
            txtSellingPrice.Text      = row.Unit_Selling_Price.ToString();
            txtReorder.Text           = row.Reorder_Level.ToString();
            txtbuyingPrice.Text       = row.Unit_Buying_Price.ToString();
            txtType.Text              = row.Drug_Type;
            txtShelf.Text             = row.Shelf;
            string        query  = "select[Drug_Category_ID] from [dbo].[Drug_Inventory] where [ID]='" + id + "'";
            SqlDataReader reader = new SystemDAL().executeQuerys(query);

            if (reader.Read())
            {
                cmbCategory.SelectedValue = Convert.ToInt32(reader[0]);
            }
        }
Exemplo n.º 26
0
 public static int User_Role_Mapping_UpdateByu_r_id(User_Role_Mapping obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_Role_Mapping_UpdateByu_r_id(obj));
     }
 }
Exemplo n.º 27
0
        public bool addUsers()
        {
            string quary  = "exec Addusers'" + this._userID + "','" + this._UserName + "','" + this._Password + "','" + this._email + "','" + this._Type + "'";
            bool   result = new SystemDAL().executeNonQueryS(quary);

            return(result);
        }
Exemplo n.º 28
0
 public static User_Role_Mapping User_Role_Mapping_SelectByu_r_id(int u_r_id)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_Role_Mapping_SelectByu_r_id(u_r_id));
     }
 }
Exemplo n.º 29
0
        public bool addAttendance()
        {
            string quary  = "exec AddAattendance '" + this.attendanceID + "','" + this.scheduleID + "','" + this.memberName + "','" + this.trainer + "','" + this.date + "','" + this.time + "','" + this.present + "'";
            bool   result = new SystemDAL().executeNonQueryS(quary);

            return(result);
        }
Exemplo n.º 30
0
 public static int ModulePermission_UpdateByp_gid(ModulePermission obj)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.ModulePermission_UpdateByp_gid(obj));
     }
 }