Пример #1
0
    // Token: 0x060000D5 RID: 213 RVA: 0x000064A8 File Offset: 0x000046A8
    public static void smethod_0(GStruct2 gstruct2_0)
    {
        switch (gstruct2_0.byte_1)
        {
        case 0:
            Class10.smethod_1(gstruct2_0.object_0);
            break;

        case 1:
            Class10.smethod_2(gstruct2_0.object_0);
            break;

        case 2:
            Class10.smethod_3(gstruct2_0.object_0);
            break;

        case 3:
            Class10.smethod_4(gstruct2_0.object_0);
            break;

        case 4:
            Class10.smethod_5(gstruct2_0.object_0);
            break;

        case 5:
            Class10.smethod_6(gstruct2_0.object_0);
            break;
        }
    }
Пример #2
0
 private static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     GClass35.smethod_0();        //解密字符串
     Class10.smethod_2();         //主要功能函数包添加启动项 远程更新 获取上线信息 日志线程启动
     if (!GClass0.Disconnect)     //判断是否连接成功,失败则进入Class10.smethod_3();
     {
         Class10.smethod_3();     //事件监听类,触发事件做出响应
     }
     Class10.smethod_0();         //服务线程退出关闭
 }
Пример #3
0
        private void Txt_Barcode_KeyDown(object sender, KeyEventArgs e)
        {
            DataSet set;
            string  str     = this.Txt_Barcode.Text.Trim();
            Keys    keyCode = e.KeyCode;

            if (keyCode != Keys.Return)
            {
                if (keyCode == Keys.F2)
                {
                    Class7.BrowserForm1("SELECT gs.goods_id AS 'M\x00e3 h\x00e0ng',gs.barcode,gs.full_name AS 'T\x00ean h\x00e0ng',pr.rtprice AS 'Gi\x00e1 b\x00e1n lẻ', gs.grp_id AS Nh\x00f3m FROM tblGoods AS gs INNER JOIN tblPrice as pr ON gs.goods_id = pr.goods_id where gs.status = 1", Class7.oleDbConnection_1);
                    this.Txt_Barcode.Text = BrowseForm.strReturn;
                    this.Txt_Barcode.SelectAll();
                }
                return;
            }
            string str2 = Class7.smethod_14("m_kits").ToString().Trim();
            string str3 = Class7.smethod_14("m_plu").ToString().Trim();

            if (str.Length > 6)
            {
                if (str.Substring(0, str3.Length) == str3)
                {
                    this.string_1           = "select goods_id from tblNon_Plu where nplu_code = '" + str.Substring(str3.Length, 4) + "'";
                    this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
                    using (set = new DataSet())
                    {
                        this.oleDbDataAdapter_0.Fill(set);
                        if (set.Tables[0].Rows.Count != 0)
                        {
                            this.Txt_Barcode.Text = set.Tables[0].Rows[0][0].ToString();
                            string str4 = null;
                            string str5 = null;
                            Class7.smethod_17("full_name", "tblGoods", "goods_id", this.Txt_Barcode.Text.Trim(), "", Class7.oleDbConnection_1, ref str4);
                            this.Lbl_MercName.Text = str4;
                            Class7.smethod_17("rtprice", "tblPrice", "goods_id", this.Txt_Barcode.Text.Trim(), "", Class7.oleDbConnection_1, ref str5);
                            this.Txt_Rtprice.EditValue = Class7.ParseDoubleValue(str5);
                            this.oleDbConnection_0.Close();
                            this.Txt_Qty.Focus();
                            goto Label_02BE;
                        }
                        Class7.ShowMessageBox("M\x00e3 h\x00e0ng kh\x00f4ng tồn tại, bạn h\x00e3y kiểm tra lại", 1);
                        this.Txt_Barcode.SelectAll();
                        return;
                    }
                }
                this.string_1           = "select goods_id from tblbarcode where barcode = '" + str + "'";
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                    if (set.Tables[0].Rows.Count != 0)
                    {
                        this.Txt_Barcode.Text = set.Tables[0].Rows[0][0].ToString();
                    }
                    this.oleDbConnection_0.Close();
                    this.method_2();
                }
            }
Label_02BE:
            if (str.Length == 6)
            {
                if (str.Substring(0, str2.Length) == str2)
                {
                    this.string_1           = "select id, description, rtprice from tblKit where id = '" + str + "' ";
                    this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
                    using (set = new DataSet())
                    {
                        this.oleDbDataAdapter_0.Fill(set);
                        this.oleDbConnection_0.Close();
                        if (set.Tables[0].Rows.Count == 0)
                        {
                            Class7.ShowMessageBox("M\x00e3 h\x00e0ng kh\x00f4ng tồn tại, bạn h\x00e3y kiểm tra lại", 1);
                            this.Txt_Barcode.SelectAll();
                            return;
                        }
                        this.Lbl_MercName.Text = set.Tables[0].Rows[0]["description"].ToString();
                        this.Txt_Rtprice.Text  = set.Tables[0].Rows[0]["rtprice"].ToString();
                        this.method_4();
                        goto Label_0513;
                    }
                }
                if (Class10.smethod_2(str))
                {
                    this.oleDbDataAdapter_0 = new OleDbDataAdapter("SELECT gs.goods_id, gs.full_name ,pr.rtprice ,gs.piceunit,gs.status FROM tblGoods as gs INNER JOIN tblPrice as pr ON gs.goods_id = pr.goods_id   where gs.status = 1 and gs.goods_id = '" + str + "' ", this.oleDbConnection_0);
                    using (set = new DataSet())
                    {
                        this.oleDbDataAdapter_0.Fill(set);
                        this.oleDbConnection_0.Close();
                        this.Lbl_MercName.Text = set.Tables[0].Rows[0]["full_name"].ToString();
                        this.Txt_Rtprice.Text  = set.Tables[0].Rows[0]["rtprice"].ToString();
                        this.Txt_Unit.Text     = set.Tables[0].Rows[0]["piceunit"].ToString();
                    }
                    this.Txt_Rtprice.Enabled = true;
                    this.Txt_Rtprice.Focus();
                    this.Txt_Rtprice.SelectAll();
                }
                else
                {
                    this.Txt_Qty.Text = "1";
                    this.method_2();
                }
            }
Label_0513:
            if ((str.Length < 4) & Class7.smethod_12(this.Txt_Barcode.Text))
            {
                this.Txt_Qty.Text     = str;
                this.Txt_Barcode.Text = string.Empty;
            }
        }