private string Thue(string mathue) { string data = "0"; try { Entities.Thue[] thue = new BizLogic.Thue().Select(); if (thue != null) { for (int k = 0; k < thue.Length; k++) { if (thue[k].MaThue == mathue) { data = thue[k].GiaTriThue; break; } } } } catch (Exception ex) { string s = ex.Message.ToString(); data = null; } return(data); }
public Entities.Thue[] Thue() { Entities.Thue[] thue = new BizLogic.Thue().Select(); if (thue == null) { thue = new Entities.Thue[0]; } return(thue); }
public string LayThue(string mathue) { string a = "0"; Entities.Thue[] goihang = new BizLogic.Thue().Select(); for (int i = 0; i < goihang.Length; i++) { if (goihang[i].MaThue == mathue) { a = goihang[i].GiaTriThue; break; } } return(a); }
private string Thue(string mathue) { string data = "0"; try { Entities.Thue[] thue = new BizLogic.Thue().Select(); if (thue!=null) { for (int k = 0; k < thue.Length; k++) { if (thue[k].MaThue == mathue) { data = thue[k].GiaTriThue; break; } } } } catch (Exception ex) { string s = ex.Message.ToString(); data = null; } return data; }
public string LayThue(string mathue) { string a = "0"; Entities.Thue[] goihang = new BizLogic.Thue().Select(); for (int i = 0; i < goihang.Length; i++) { if (goihang[i].MaThue == mathue) { a = goihang[i].GiaTriThue; break; } } return a; }
/// <summary> /// Phiếu thu /// </summary> /// <param name="obj"></param> public void XuLy_Thue(NetworkStream clientStream) { Entities.Thue pt1 = (Entities.Thue)formatter.Deserialize(clientStream); // kiểm tra hành động được gửi đến switch (pt1.HanhDong) { case "Select": { Entities.Thue[] pt = new BizLogic.Thue().Select(); formatter.Serialize(clientStream, pt); break; } default: break; } }
public Entities.Thue[] Thue() { Entities.Thue[] thue = new BizLogic.Thue().Select(); if (thue == null) thue = new Entities.Thue[0]; return thue; }