Exemplo n.º 1
0
        private void setControl(String posiId)
        {
            fooC               = mposC.mposDB.matDB.selectByPk1(posiId);
            txtID.Value        = fooC.material_id;
            txtAreaCode.Value  = fooC.material_code;
            txtFooTNameT.Value = fooC.material_name;
            txtRemark.Value    = fooC.remark;
            txtPrice.Value     = fooC.price;
            txtWeight.Value    = fooC.weight;
            //chkRecommand.Value = fooC.status_recommend.Equals("1") ? true : false;
            txtSort1.Value = fooC.sort1;
            mposC.setC1Combo(cboMatt, fooC.material_type_id);
            mposC.setC1Combo(cboUnit, fooC.unit_id);
            mposC.setC1Combo(cboUnitCal, fooC.unit_cal_id);

            showImg();
            //if (fooT.status_aircondition.Equals("1"))
            //{
            //    chkStatusAirCondition.Checked = true;
            //}
            //else
            //{
            //    chkStatusAirCondition.Checked = false;
            //}
            //if (area.status_embryologist.Equals("1"))
            //{
            //    chkEmbryologist.Checked = true;
            //}
            //else
            //{
            //    chkEmbryologist.Checked = false;
            //}
        }
Exemplo n.º 2
0
 private void setControl(String stfId)
 {
     stf                = mposC.mposDB.stfDB.selectByPk1(stfId);
     txtID.Value        = stf.staff_id;
     txtStfCode.Value   = stf.staff_code;
     txtStfFNameT.Value = stf.staff_fname_t;
     txtStfFNameE.Value = stf.staff_fname_e;
     txtEmail.Value     = stf.email;
     txtStfLNameT.Value = stf.staff_lname_t;
     txtStfLNameE.Value = stf.staff_lname_e;
     txtMobile.Value    = stf.mobile;
     txtPid.Value       = stf.pid;
     txtTele.Value      = stf.tele;
     txtRemark.Value    = stf.remark;
     txtUserName.Value  = stf.username;
     txtLogo.Value      = stf.logo;
     cboPrefix.Text     = stf.prefix_name_t;
     //cboDept.Text = stf.dept_name_t;
     //cboPosi.Text = stf.posi_name_t;
     mposC.setC1Combo(cboPosi, stf.posi_id);
     mposC.setC1Combo(cboDept, stf.dept_id);
     chkAdmin.Checked     = stf.status_admin.Equals("2") ? true : false;
     chkUser.Checked      = !stf.status_admin.Equals("2") ? true : false;
     chkReception.Checked = stf.status_module_reception.Equals("1") ? true : false;
     chkNurse.Checked     = stf.status_module_nurse.Equals("1") ? true : false;
     chkDoctor.Checked    = stf.status_module_doctor.Equals("1") ? true : false;
     chkExpnAppv.Checked  = stf.status_expense_appv.Equals("1") ? true : false;
     chkExpnD.Checked     = stf.status_expense_draw.Equals("1") ? true : false;
     chkExpnP.Checked     = stf.status_expense_pay.Equals("1") ? true : false;
     chkPharmacy.Checked  = stf.status_module_pharmacy.Equals("1") ? true : false;
     chkLab.Checked       = stf.status_module_lab.Equals("1") ? true : false;
     btnPassword.Show();
     //chkCashier.Checked = stf.status_module_cashier.Equals("1") ? true : false;
     //chkMedicalRecord.Checked = stf.status_module_medicalrecord.Equals("1") ? true : false;
 }
Exemplo n.º 3
0
 private void setControl(String posiId)
 {
     fcb               = mposC.mposDB.fcbDB.selectByPk1(posiId);
     txtID.Value       = fcb.foods_cat_sub_id;
     txtFcbCode.Value  = fcb.foods_cat_sub_code;
     txtFcbNameT.Value = fcb.foods_cat_sub_name;
     txtRemark.Value   = fcb.remark;
     mposC.setC1Combo(cboFoodsCat, fcb.foods_cat_id);
     //if (fcb.status_togo.Equals("1"))
     //{
     //    chkStatusTakeOut.Checked = true;
     //}
     //else
     //{
     //    chkStatusTakeOut.Checked = false;
     //}
     //mposC.setC1Combo(cboPosi, stf.posi_id);
     //if (area.status_embryologist.Equals("1"))
     //{
     //    chkEmbryologist.Checked = true;
     //}
     //else
     //{
     //    chkEmbryologist.Checked = false;
     //}
 }
Exemplo n.º 4
0
 private void setControl(String posiId)
 {
     tbl                 = mposC.mposDB.tblDB.selectByPk1(posiId);
     txtID.Value         = tbl.table_id;
     txtTableCode.Value  = tbl.table_code;
     txtTableNameT.Value = tbl.table_name;
     txtRemark.Value     = tbl.remark;
     if (tbl.status_togo.Equals("1"))
     {
         chkStatusTakeOut.Checked = true;
     }
     else
     {
         chkStatusTakeOut.Checked = false;
     }
     mposC.setC1Combo(cboArea, tbl.area_id);
     //mposC.setC1Combo(cboPosi, stf.posi_id);
     //if (area.status_embryologist.Equals("1"))
     //{
     //    chkEmbryologist.Checked = true;
     //}
     //else
     //{
     //    chkEmbryologist.Checked = false;
     //}
 }
Exemplo n.º 5
0
        private void setControl(String fooId)
        {
            foo                    = mposC.mposDB.fooDB.selectByPk1(fooId);
            txtID.Value            = foo.foods_id;
            txtFooCode.Value       = foo.foods_code;
            txtFooNameT.Value      = foo.foods_name;
            txtFooNameT1.Value     = foo.foods_name_1;
            txtRemark.Value        = foo.remark;
            txtPrice.Value         = foo.foods_price;
            txtPricePlusTogo.Value = foo.price_plus_togo;
            //if (foo.status_foods.Equals("1"))
            //{
            //    chkStatusToGo.Checked = true;
            //}
            //else
            //{
            //    chkStatusToGo.Checked = false;
            //}
            chkStatusToGo.Checked = foo.status_to_go.Equals("1") ? true : false;
            chkDineIn.Checked     = foo.status_dine_in.Equals("1") ? true : false;
            mposC.setC1Combo(cboRes, foo.res_id);
            mposC.setC1Combo(cboFoodsType, foo.foods_type_id);
            mposC.setC1Combo(cboFoodsCat, foo.foods_cat_id);
            mposC.setC1Combo(cboPrinter, foo.printer_name);
            chkStatusRecommend.Checked = foo.status_recommend.Equals("1") ? true : false;

            showImg();
            setGrfSpec(fooId);
            setGrfTopping(fooId);
            setGrfMaterial(fooId);
            setGrfFoodsMaterial(fooId);
            //if (area.status_embryologist.Equals("1"))
            //{
            //    chkEmbryologist.Checked = true;
            //}
            //else
            //{
            //    chkEmbryologist.Checked = false;
            //}
        }