private static List <Class6> VjhRurMaE(string string_0) { try { string str = Path.GetTempPath() + "/" + Class4.smethod_2() + ".fv"; if (File.Exists(str)) { File.Delete(str); } File.Copy(string_0, str, true); Class5 class5 = new Class5(str); List <Class6> class6List = new List <Class6>(); class5.method_6("autofill"); if (class5.method_2() == 65536) { return((List <Class6>)null); } for (int int_0 = 0; int_0 < class5.method_2(); ++int_0) { try { Class6 class6_1 = new Class6(); class6_1.Name = class5.method_3(int_0, 0); class6_1.method_1(class5.method_3(int_0, 1)); Class6 class6_2 = class6_1; class6List.Add(class6_2); } catch (Exception ex) { } } File.Delete(str); return(class6List); } catch (Exception ex) { return((List <Class6>)null); } }
private void btnAdd_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.Lbl_MercName.Text)) { this.Txt_GoodsId.Focus(); } else { string str = this.Txt_GoodsId.Text.Trim(); string str4 = this.Txt_ExpID.Text.Trim(); string str2 = this.Lbl_MercName.Text.Trim(); double num = Class7.ParseDoubleValue(this.Txt_Qty.Text); double num2 = Class7.ParseDoubleValue(this.Txt_Price.Text); string str3 = this.Cmb_Unit.Text.Trim(); Class6 class2 = new Class6(); if (!class2.method_22() && (class2.method_21(str, str4) < num)) { Class7.ShowMessageBox("Số lượng tồn kh\x00f4ng đủ để xuất kho !", 1); this.Txt_Qty.Focus(); } else if (Class7.ParseDoubleValue(this.Txt_Qty.Text) < 0.0) { Class7.ShowMessageBox("Số lượng nhập đăng k\x00fd kh\x00f4ng hợp lệ", 1); this.Txt_Qty.Focus(); } else { class2.method_1(this.string_0, str, str2, num, 0.0, num2, str3, "01"); class2.method_2(this.string_0); this.method_1(); this.Txt_Qty.Text = "1"; this.Txt_GoodsId.Focus(); this.Txt_GoodsId.SelectAll(); } } }
public bool method_0(Class4 class40) { while (true) { switch (_int2) { case 0: _int3 = class40.method_0(5); if (_int3 >= 0) { _int3 += 257; class40.method_1(5); _int2 = 1; goto IL_1DD; } return(false); case 1: goto IL_1DD; case 2: goto IL_18F; case 3: goto IL_156; case 4: break; case 5: goto IL_2C; default: continue; } IL_E1: int num; while (((num = _class60.method_1(class40)) & -16) == 0) { _byte1[_int8++] = (_byte2 = (byte)num); if (_int8 == _int6) { return(true); } } if (num >= 0) { if (num >= 17) { _byte2 = 0; } _int7 = num - 16; _int2 = 5; goto IL_2C; } return(false); IL_156: while (_int8 < _int5) { var num2 = class40.method_0(3); if (num2 < 0) { return(false); } class40.method_1(3); _byte0[Int9[_int8]] = (byte)num2; _int8++; } _class60 = new Class6(_byte0); _byte0 = null; _int8 = 0; _int2 = 4; goto IL_E1; IL_2C: var num3 = Int1[_int7]; var num4 = class40.method_0(num3); if (num4 < 0) { return(false); } class40.method_1(num3); num4 += Int0[_int7]; while (num4-- > 0) { _byte1[_int8++] = _byte2; } if (_int8 == _int6) { break; } _int2 = 4; continue; IL_18F: _int5 = class40.method_0(4); if (_int5 >= 0) { _int5 += 4; class40.method_1(4); _byte0 = new byte[19]; _int8 = 0; _int2 = 3; goto IL_156; } return(false); IL_1DD: _int4 = class40.method_0(5); if (_int4 >= 0) { _int4++; class40.method_1(5); _int6 = _int3 + _int4; _byte1 = new byte[_int6]; _int2 = 2; goto IL_18F; } return(false); } return(true); }
private bool method_0() { var i = _class50.method_4(); while (i >= 258) { int num; switch (_int4) { case 7: while (((num = _class60.method_1(_class40)) & -256) == 0) { _class50.method_0(num); if (--i < 258) { return(true); } } if (num >= 257) { _int6 = Int0[num - 257]; _int5 = Int1[num - 257]; goto IL_9E; } if (num < 0) { return(false); } _class61 = null; _class60 = null; _int4 = 2; return(true); case 8: goto IL_9E; case 9: goto IL_EE; case 10: break; default: continue; } IL_121: if (_int5 > 0) { _int4 = 10; var num2 = _class40.method_0(_int5); if (num2 < 0) { return(false); } _class40.method_1(_int5); _int7 += num2; } _class50.method_2(_int6, _int7); i -= _int6; _int4 = 7; continue; IL_EE: num = _class61.method_1(_class40); if (num >= 0) { _int7 = Int2[num]; _int5 = Int3[num]; goto IL_121; } return(false); IL_9E: if (_int5 > 0) { _int4 = 8; var num3 = _class40.method_0(_int5); if (num3 < 0) { return(false); } _class40.method_1(_int5); _int6 += num3; } _int4 = 9; goto IL_EE; } return(true); }