private void initData() { sCBase = new SCBase(); //Init model List <string> result = typeof(ContractStatusString).GetAllPublicConstantValues <string>(); List <ObjTmp> lstModel = new List <ObjTmp>(result.Count); string[] words; string[] stringSeparators = new string[] { "-" }; foreach (string s in result) { words = s.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries); lstModel.Add(new ObjTmp(words[0], words[1])); } cblModel.DataSource = lstModel; cblModel.ValueMember = "strValue1"; cblModel.DisplayMember = "strText"; //Load sites List <clsBaseListItem> listTmp = sCBase.getAMSites(); List <ObjTmp> lstSites = new List <ObjTmp>(listTmp.Count); foreach (clsBaseListItem site in listTmp) { lstSites.Add(new ObjTmp(site.strValue1, site.strText)); } cbSites.DataSource = lstSites; cbSites.ValueMember = "strValue1"; cbSites.DisplayMember = "strValue1"; //Load contaactType cblContactType.DataSource = sCBase.getContractTypeActive(); cblContactType.DisplayMember = "Name"; cblContactType.ValueMember = "OID"; //Set check default setCheckDefault(); //View searchContract searchContract(); //others objComClient = new AMComClient(); NWDBName = objAppConfig.getStringParam("ASETUKSET", "COMMONDB", "C3", ""); }
public void openInvoicePDF(String UnitId, int SRECNO) { AMComClient objCom = new AMComClient(); objCom.openSPInvoice(UnitId, SRECNO); }
public void openInvoice(String UnitId, int SSALID, int SRECNO) { AMComClient objCom = new AMComClient(); objCom.openSPOrder(UnitId, SSALID, SRECNO); }