|
As someone in this thread will note, its called sales. My way of dealing with those lying bastards is to try to get myself as high in the decision making tree as possible. I've been bit too many times by sales. After they sell a system that CAN'T work, you get the blame because you weren't competent enough to do the job, while the salesman smiles and spends his commission on a new car.
I was doing a conveyor system once and after it was done, I did some timing tests and told the salesman who happened to be on platform at the time, that it was doing 22 cartons a minute and could be ramped up to a maximum of 40 CPM. He goes, "Sssh, sssh, we sold it saying it could do 80." Dumbfounded, I exclaimed it could never do that! He pointed to the existing system that was working at the maximum it could with the existing human workflow, and said it would never need to.
This attitude combined with the one that software could ALWAYS overcome hardware problems, came back to bite them big time on two projects. Unfortunately, I was on one of them. The other system worked only if everything worked perfectly. The first thing you learn in material handing is NOTHING works 100%, 90% at best, that and FIFO doesn't work. But the system I was on, I got to function at 65 CPM. The floor manager was extremely pleased with it. But corporate was not. The contract said 120 CPM and they weren't going to sign off on it until they saw it do 120. I made myself unpopular by doing math (I always pi$$ people off when I do math) and found if everything worked perfectly, the hardware maxed out at 114. The salesman not only had used the wrong formula, he designed it with only a 1% safety margin using that formula. So the fallout---my manager was fired and the salesman is still there. I left shortly after this wonderful manager had been fired and they had brought in the bozo who virtually nothing about software.
Psychosis at 10
Film at 11
|
|
|
|
|
|
Great article. That's what I guess happened to him.
My new toy: www.cloudclipx.com
-- If I have 8 hours to chop down a tree, I spend 6 sharpening my ax!
|
|
|
|
|
xavier morera wrote: Oh well... some VERY RICH people go in life being dishonest ... FTFY
IIRC, Bill Gates hired lots of temps and stuck them in a previously empty office during the first sales visit by IBM. Who started it?
But I thought the post was about those sham-wows seen on TV.
Gary
|
|
|
|
|
I used to work in the car computing industry. It was standard practice to show screen shots and videos of an interface that didn't really exist. The comments to me when developing an interface was always: It doesn't have to work, it just has to look like it does.
|
|
|
|
|
But that is different and I would even say that it is acceptable. You can say "look at this, it is how it is going to work".
But can you say "here is the product, look how nice it is and it works" when in reality it is just smoke and mirrors?
My new toy: www.cloudclipx.com
-- If I have 8 hours to chop down a tree, I spend 6 sharpening my ax!
|
|
|
|
|
Ha! Well I guess I can claim ignorance on the ethics side for what I created. I have no idea how they presented them to potential clients.
|
|
|
|
|
Then you are not guilty. This guy did it with all the bad intentions! hahaha
My new toy: www.cloudclipx.com
-- If I have 8 hours to chop down a tree, I spend 6 sharpening my ax!
|
|
|
|
|
|
Why is he copying the code?! He could just call the function this stuff is in again, and have it be properly recursive as a bonus.
|
|
|
|
|
That is a really brilliant bit of code.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
Completely agree to you. And am the one responsible for their deliverables, as I am their lead.
Richard Menezes
|
|
|
|
|
Don't mention that there's an error, just show him the code and ask him why he shouldn't be fired for being a total moron! If he is actually any good, he'll laugh about it and say, "Oh yeah, you're right, maybe you'll have to let me go!"
|
|
|
|
|
While trying to find a possible infinite loop, I added the second line below:
while true do begin
Reset(CurrFile);
ReadLn(CurrFile,Pierce);
The break statement to exit the while loop depends on making it to a specific line in the file. Since I already read some lines before this, I thought just in case the line I was waiting for was above them, I would reset the file. After debugging this a few times, I realized that I was an idiot, and I moved the reset to just before the while...
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
I'm sure I've done that one. More than once.
Hangs head in shame...
Software Zen: delete this;
|
|
|
|
|
Java
switch(getRodzajSprawy()){
case Biletowa:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(false);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(true);
if(initData){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareTrainCombo(true);
trainCombo.setSelection(new StructuredSelection(Common.nullLongComboModel));
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dwaDniTemu);
editTrescReklamacjiText.setInput("zwrot za bilet");
}
if(isEdit && previousComplaintType != null){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
if(!previousComplaintType.equals(ComplaintTypeEnum.Biletowa) && !register3911ChangeToTheSame)
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
prepareTrainCombo(true);
trainCombo.setSelection(new StructuredSelection(Common.nullLongComboModel));
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case BiletowaMiedzynarodowa:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(true);
prepareTrainCombo(true);
if(initData){
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dzis);
editTrescReklamacjiText.setInput("");
}
if(isEdit && previousComplaintType != null){
if(!previousComplaintType.equals(ComplaintTypeEnum.BiletowaMiedzynarodowa) && !register3911ChangeToTheSame)
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case Bezbiletowa:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(false);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(true);
if(initData){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareTrainCombo(true);
trainCombo.setSelection(new StructuredSelection(Common.nullLongComboModel));
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dwaDniTemu);
editTrescReklamacjiText.setInput("anulowanie wezwania");
}
if(isEdit && previousComplaintType != null){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
if(!previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
prepareTrainCombo(true);
trainCombo.setSelection(new StructuredSelection(Common.nullLongComboModel));
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(!previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
}
someControl.setText(textForCallsToPay);
someControl.setDrukiScRejSection(textForCallsToPay);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case RoszczeniaKomMiedzynarodowa:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(true);
if(initData){
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareTrainCombo(false);
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dzis);
editTrescReklamacjiText.setInput("");
}
if(isEdit && previousComplaintType != null){
if(!previousComplaintType.equals(ComplaintTypeEnum.RoszczeniaKomMiedzynarodowa))
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
prepareTrainCombo(false);
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case RoszczeniaKomKrajowa:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(true);
if(initData){
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareTrainCombo(false);
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dzis);
editTrescReklamacjiText.setInput("");
}
if(isEdit && previousComplaintType != null){
if(!previousComplaintType.equals(ComplaintTypeEnum.RoszczeniaKomKrajowa))
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
prepareTrainCombo(false);
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case Odstapienie:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(true);
prepareTrainCombo(true);
if(initData){
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareDokUlgCombo(true);
prepareOryginalBiletuCombo(true);
someControl.setInput(dzis);
editTrescReklamacjiText.setInput("");
}
if(isEdit && previousComplaintType != null){
if(!previousComplaintType.equals(ComplaintTypeEnum.Odstapienie))
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(true);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(true);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case Skargi:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(false);
prepareTrainCombo(true);
if(initData){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dzis);
editTrescReklamacjiText.setInput("");
}
if(isEdit && previousComplaintType != null){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
if(!previousComplaintType.equals(ComplaintTypeEnum.Skargi) && !register51ChangeToTheSame)
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
receiversTableTemp.removeAll();
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case Wnioski:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(false);
prepareTrainCombo(true);
if(initData){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dzis);
editTrescReklamacjiText.setInput("");
}
if(isEdit && previousComplaintType != null){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
if(!previousComplaintType.equals(ComplaintTypeEnum.Wnioski) && !register51ChangeToTheSame)
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
receiversTableTemp.removeAll();
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
case PytaniaInf:
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
editIncomeDate.getDateValidatableViewer().getTrigerButton().setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(true);
someControl.setRequired(true);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(false);
someControl.setRequired(false);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setEnabled(false);
someControl.setExpanded(false);
someControl.setEnabled(false);
prepareTrainCombo(true);
if(initData){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
prepareDokUlgCombo(false);
prepareOryginalBiletuCombo(false);
someControl.setInput(dzis);
editTrescReklamacjiText.setInput("");
}
if(isEdit && previousComplaintType != null){
someControl.setInput(null);
someControl.setInput(null);
someControl.setInput(null);
if(!previousComplaintType.equals(ComplaintTypeEnum.PytaniaInf) && !register51ChangeToTheSame)
editNumerReklamacjiText.setInput(createComplaintNumber(rodzSpr));
else
someControl.setInput(prevComplaintNumber);
tmpSel = editDokUlgCombo.getSelection();
prepareDokUlgCombo(false);
someControl.setSelection(tmpSel);
tmpSel = editOryginalBiletuCombo.getSelection();
prepareOryginalBiletuCombo(false);
someControl.setSelection(tmpSel);
if(previousComplaintType.equals(ComplaintTypeEnum.Bezbiletowa))
editDrukScRejList.setItems(new ArrayList(0));
receiversTableTemp.removeAll();
}
someControl.setText(textForTickets);
drukiScRejSection.layout();
someControl.setDrukiScRejSection(textForTickets);
someControl.setEnabled(true);
someControl.setEnabled(true);
someControl.setEnabled(false);
someControl.setEnabled(false);
break;
default:
note: I have replaced names of controls and removed commentaries, to protect property.
Greetings - Jacek
modified on Friday, August 5, 2011 4:59 AM
|
|
|
|
|
|
editTravelDate.getDateValidatableViewer().getTrigerButton().setEnabled(false);
What's a triger button? Is it somewhat related to a tiger button? Striped one maybe?
|
|
|
|
|
There's a three-part solution to this little problem...
0) Find the person who wrote that code
1) Erase every line of code they've ever written, and reformat every disk it's ever touched, just to be safe
2) Introduce them to the exciting new opportunities in the food services industry
|
|
|
|
|
It would have taken them a long time to get that code out...
If they translate that behavior into serving me my fries, they'll never get to me warm, never mind hot.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Hmm... Maybe that's how the person ended up in software development...
"You can't cook fries, you can't flip burgers, and you can't operate a cash register... You're just not cut out for fast food... Have you ever considered learning Java?"
|
|
|
|
|
It has been written using an append and don't touch anything else or everything blows method. It is a three-year history code, with no unit tests, so...
Greetings - Jacek
|
|
|
|
|
Hmm... Good point.
Format twice, just to be sure.
|
|
|
|
|
My mouth is just wide open... speechless
________
John Y.
Developer
|
|
|
|
|
Ugh, I just hate the bad usage of BETWEEN in SQL in some legacy SP's at my work.
Horrible to use for finding values between a date range, when the date range can be 1 day, ugh!
"I have a theory that the truth is never told during the nine-to-five hours. "
— Hunter S. Thompson
|
|
|
|