| | |
| | | string s = ""; |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(dtpHDate.Value, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | MessageBox.Show(s, "æç¤º"); |
| | | return false; |
| | | } |
| | | //if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(dtpHDate.Value, ref sYear, ref sPeriod, ref s) == false) |
| | | //{ |
| | | // MessageBox.Show(s, "æç¤º"); |
| | | // return false; |
| | | //} |
| | | sYear = ClsPub.isDate(dtpHDate.Value).Year; |
| | | sPeriod = ClsPub.isDate(dtpHDate.Value).Month; |
| | | //æºåä¿¡æ¯ |
| | | //BillNew.omodel.HMainSourceBillType = cmbSourceBillType.Text; |
| | | // |
| | | BillNew.omodel.HYear = sYear; |
| | | BillNew.omodel.HPeriod = sPeriod; |
| | | BillNew.omodel.HPRDORGID = DBUtility.ClsPub.HOrgID; //ç»ç» |
| | | //åºå®èµå¼================================= |
| | | BillNew.omodel.HBillNo = this.txtHBillNo.Text.Trim(); //å¨èµå¼ç±»åå°±å¤ç好åç¬¦ä¸²åæ°å |
| | | BillNew.omodel.HDate = this.dtpHDate.Value; |
| | |
| | | Report.FieldByName("åææ¹æ¬¡").AsString = txtHMateOutBatchNo.Text; |
| | | Report.FieldByName("模å
·è®¾å¤").AsString = txtHEquipMentID.Text; |
| | | Report.FieldByName("项ç®å·").AsString = txtHProjectNum.Text; |
| | | Report.FieldByName("å¾å·çæ¬").AsString = textHPicNumVer.Text; |
| | | Report.FieldByName("æ»è£
å¾å·").AsString = textHPicNumAssemble.Text; |
| | | Report.FieldByName("æè´¨").AsString = textHMaterTexture.Text; |
| | | Report.FieldByName("æåç¼å·").AsString = textHProductNum.Text; |
| | | Report.FieldByName("çæ¬").AsString = textHVerNum.Text; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | MessageBox.Show("æå°å¤±è´¥ï¼[项ç®å·],[æµè½¬å¡ç¼å·],[æµè½¬å¡æ°é],[产å代ç ],[产ååç§°],[计åå¼å·¥æ¥æ],[计åå®å·¥æ¥æ],[订åè·è¸ªå·],[åææ¹æ¬¡],[模å
·è®¾å¤]." + e.Message); |
| | | MessageBox.Show("æå°å¤±è´¥ï¼[项ç®å·],[æµè½¬å¡ç¼å·],[æµè½¬å¡æ°é],[产å代ç ],[产ååç§°],[计åå¼å·¥æ¥æ],[计åå®å·¥æ¥æ],[订åè·è¸ªå·],[åææ¹æ¬¡],[模å
·è®¾å¤],[å¾å·çæ¬],[æ»è£
å¾å·],[æè´¨],[æåç¼å·],[çæ¬]." + e.Message); |
| | | } |
| | | |
| | | } |