示例#1
0
        //تعديل حافظة
        public frm_Pocket_Add_Update(frm_Pocket_Show owner, string Pocket_Head_ID)
        {
            InitializeComponent();
            frm_pocket_show = owner;

            this.Text           = "تعديل حافظة";
            button1.Text        = "حفظ التغييرات";
            this.Pocket_Head_ID = Pocket_Head_ID;
            Populate_Pocket_DGV(Pocket_Head_ID);

            ArrayList Pocket_Header_Info = BackEnd.Pocket.Get_Header_Info(Pocket_Head_ID);

            textBox2.Text         = Pocket_Header_Info[0].ToString();
            textBox3.Text         = Pocket_Header_Info[1].ToString();
            dateTimePicker1.Value = Convert.ToDateTime(Pocket_Header_Info[2].ToString());
            textBox1.Text         = Pocket_Header_Info[3].ToString();
            Serial_Edit           = Pocket_Header_Info[3].ToString();//Used For validation

            ErrorProvider_IconPlacement();
            TextBox_Validation_Query();
            Textbox_Numbers_Letters();
            Textbox_Numbers_Only();
            TextBox_Member_Validation();
            Textbox_Serial_Check();
            AutoCompleteText();
            TextBox_Member_M_Validation();
            Textbox_Zeroes_Only();
            Summing_Lables();
            Textbox_Enter_Add();
        }
示例#2
0
 //بيانات الحافظة
 private void button3_Click(object sender, EventArgs e)
 {
     if (BackEnd.SessionInfo.Permissions[4].Equals('y'))
     {
         Button_Coloring("button3");
         frm_Pocket_Add = new SubForms.Members.frm_Pocket_Show();
         groupBox1.Controls.Clear();
         frm_Pocket_Add.TopLevel = false;
         groupBox1.Controls.Add(frm_Pocket_Add);
         frm_Pocket_Add.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frm_Pocket_Add.Dock            = DockStyle.Fill;
         frm_Pocket_Add.Show();
     }
     else
     {
         new frmDialog("لا توجد صلاحيات كافية").ShowDialog();
     }
 }
示例#3
0
        string ID_For_Edit;//عشان نخزن الايدي بقيمته و ميروحش مننا بحيث المتعدل يتخزن بقيمته انما المضاف حديثا حيتخزن ايدي بصفر

        /*===========================================================*/
        /*===========================================================*/

        //اضافة حافظة
        public frm_Pocket_Add_Update(frm_Pocket_Show owner)
        {
            InitializeComponent();
            frm_pocket_show = owner;
            Populate_Pocket_DGV();
            this.Text = "اضافة حافظة";


            ErrorProvider_IconPlacement();
            TextBox_Validation_Query();
            Textbox_Numbers_Letters();
            Textbox_Numbers_Only();
            TextBox_Member_Validation();
            Textbox_Serial_Check();
            AutoCompleteText();
            TextBox_Member_M_Validation();
            Textbox_Zeroes_Only();
            Summing_Lables();
            M_Calculate();
            Textbox_Enter_Add();
        }